public static interface SchedulerServiceProviderHolder.SchedulerProvider
Modifier and Type | Method and Description |
---|---|
void |
close() |
ThreadPoolExecutor |
getBulkScheduler() |
ScheduledExecutorService |
getFixedSizeScheduler(int minimumThreads,
String poolName) |
DynamicSizedSchedulerInterface |
getScheduler(int minimumThreads,
String poolName,
int maximumPoolSize)
Request to get a scheduler with a minimum number of AVAILABLE threads.
|
ScheduledThreadPoolExecutor |
getTimeoutScheduler()
Default Timeout scheduler.
|
DynamicSizedSchedulerInterface getScheduler(int minimumThreads, String poolName, int maximumPoolSize)
minimumThreads
- Minimum number of available threads for the returned schedulerpoolName
- name of pool to identify threadsmaximumPoolSize
- maximum pool sizeScheduledExecutorService getFixedSizeScheduler(int minimumThreads, String poolName)
ScheduledThreadPoolExecutor getTimeoutScheduler()
This is a one Thread fixed sized scheduler. This specific scheduler is using java 1.7 RemoveOnCancelPolicy, so the task are removed from queue permitting to avoid memory consumption [CONJ-297]
ThreadPoolExecutor getBulkScheduler()
void close()
Copyright © 2020 mariadb.com. All rights reserved.