public static interface SchedulerServiceProviderHolder.SchedulerProvider
Provider for thread pools which allow scheduling capabilities. It is expected that the thread pools entire lifecycle (start to stop) is done through the same provider instance.
Modifier and Type | Method and Description |
---|---|
ScheduledExecutorService |
getFixedSizeScheduler(int minimumThreads) |
DynamicSizedSchedulerInterface |
getScheduler(int minimumThreads)
Request to get a scheduler with a minimum number of AVAILABLE threads.
|
DynamicSizedSchedulerInterface getScheduler(int minimumThreads)
minimumThreads
- Minimum number of available threads for the returned schedulerScheduledExecutorService getFixedSizeScheduler(int minimumThreads)
Copyright © 2016. All rights reserved.