Skip to content

Instantly share code, notes, and snippets.

@pgordon9
Last active March 4, 2017 16:00
Show Gist options
  • Save pgordon9/97f1845f7758f7ade579a47898f85271 to your computer and use it in GitHub Desktop.
Save pgordon9/97f1845f7758f7ade579a47898f85271 to your computer and use it in GitHub Desktop.
CounterServlets base. JettyExample | parkergordon.io
object JettyExample{
{...}
object CounterServlets{
private var requestCount: Int = AtomicInteger(0) // encapsulate the state in a Thread safe way
// TODO: Servlet Classes to go here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment