java.lang.Object
org.glassfish.jersey.spi.AbstractThreadPoolProvider<ThreadPoolExecutor>
org.glassfish.jersey.spi.ThreadPoolExecutorProvider
io.helidon.jersey.client.ExecutorProvider
- All Implemented Interfaces:
AutoCloseable
,ExecutorServiceProvider
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
ConstructorDescriptionExecutorProvider
(Optional<Integer> poolSize) Create new instance of the context aware executor provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
Methods inherited from class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
createExecutor, createExecutor, dispose, getKeepAliveTime, getWorkQueue, preDestroy
Methods inherited from class org.glassfish.jersey.spi.AbstractThreadPoolProvider
close, getBackingThreadFactory, getExecutor, getRejectedExecutionHandler, getTerminationTimeout, isClosed, onClose
-
Constructor Details
-
ExecutorProvider
Create new instance of the context aware executor provider.- Parameters:
poolSize
- Maximum pool size
-
-
Method Details
-
getMaximumPoolSize
protected int getMaximumPoolSize()- Overrides:
getMaximumPoolSize
in classThreadPoolExecutorProvider
-
getCorePoolSize
protected int getCorePoolSize()- Overrides:
getCorePoolSize
in classAbstractThreadPoolProvider<ThreadPoolExecutor>
-
getExecutorService
- Specified by:
getExecutorService
in interfaceExecutorServiceProvider
- Overrides:
getExecutorService
in classThreadPoolExecutorProvider
-