java.lang.Object
org.glassfish.jersey.spi.AbstractThreadPoolProvider<ScheduledThreadPoolExecutor>
org.glassfish.jersey.spi.ScheduledThreadPoolExecutorProvider
io.helidon.jersey.client.ScheduledExecutorProvider
- All Implemented Interfaces:
AutoCloseable
,ExecutorServiceProvider
,ScheduledExecutorServiceProvider
@ClientBackgroundScheduler
public class ScheduledExecutorProvider
extends ScheduledThreadPoolExecutorProvider
Wraps default executor to enable Helidon context propagation for Jersey async calls.
-
Field Summary
Fields inherited from class org.glassfish.jersey.spi.AbstractThreadPoolProvider
DEFAULT_TERMINATION_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Methods inherited from class org.glassfish.jersey.spi.ScheduledThreadPoolExecutorProvider
createExecutor, dispose, preDestroy
Methods inherited from class org.glassfish.jersey.spi.AbstractThreadPoolProvider
close, getBackingThreadFactory, getExecutor, getRejectedExecutionHandler, getTerminationTimeout, isClosed, onClose
-
Constructor Details
-
ScheduledExecutorProvider
public ScheduledExecutorProvider()Creates a new instance.
-
-
Method Details
-
getCorePoolSize
protected int getCorePoolSize()- Overrides:
getCorePoolSize
in classAbstractThreadPoolProvider<ScheduledThreadPoolExecutor>
-
getExecutorService
- Specified by:
getExecutorService
in interfaceExecutorServiceProvider
- Specified by:
getExecutorService
in interfaceScheduledExecutorServiceProvider
- Overrides:
getExecutorService
in classScheduledThreadPoolExecutorProvider
-