@ClientBackgroundScheduler class DefaultClientBackgroundSchedulerProvider extends ScheduledThreadPoolExecutorProvider
ScheduledExecutorServiceProvider
used on the client side for providing the scheduled
executor service that runs background tasks.DEFAULT_TERMINATION_TIMEOUT
Constructor and Description |
---|
DefaultClientBackgroundSchedulerProvider()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getCorePoolSize()
Get the number of the core threads of the the provisioned thread pool executor.
|
createExecutor, dispose, getExecutorService, preDestroy
close, getBackingThreadFactory, getExecutor, getRejectedExecutionHandler, getTerminationTimeout, isClosed, onClose
DefaultClientBackgroundSchedulerProvider()
protected int getCorePoolSize()
AbstractThreadPoolProvider
The value from this method is passed as one of the input parameters in a call to the AbstractThreadPoolProvider.createExecutor(int, java.util.concurrent.ThreadFactory, java.util.concurrent.RejectedExecutionHandler)
method.
The method can be overridden to customize the number of core threads of the provisioned thread pool executor.
If not customized, the method defaults to the number of available processors
in the system.
getCorePoolSize
in class AbstractThreadPoolProvider<java.util.concurrent.ScheduledThreadPoolExecutor>
AbstractThreadPoolProvider.createExecutor(int, java.util.concurrent.ThreadFactory, java.util.concurrent.RejectedExecutionHandler)