Skip to content

Instantly share code, notes, and snippets.

@alvindizon
Created May 30, 2020 06:05
Show Gist options
  • Save alvindizon/8e4f2558fc9da310f61149c08730056b to your computer and use it in GitHub Desktop.
Save alvindizon/8e4f2558fc9da310f61149c08730056b to your computer and use it in GitHub Desktop.
sample custom thread pool config (from Vasiliy Zukanov)
new ThreadPoolExecutor(
3,
Integer.MAX_VALUE,
60,
TimeUnit.SECONDS,
new SynchronousQueue<Runnable>()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment