Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static ExecutorService getCachedPool(ThreadFactory threadFactory)
- {
- return new ThreadPoolExecutor(20, 20,
- 60L, TimeUnit.SECONDS,
- new SynchronousQueue<Runnable>(),
- threadFactory);
- }
- List<Future<ArtistCoverImage>> results = ArtistArtworkOnlineLookup.getExecutorService()
- .invokeAll(lookups);
- private static ExecutorService getCachedPool(ThreadFactory threadFactory)
- {
- return new ThreadPoolExecutor(20, Integer.MAX,
- 60L, TimeUnit.SECONDS,
- new SynchronousQueue<Runnable>(),
- threadFactory);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement