@ManagedAsyncExecutor
public class VitamThreadPoolExecutorProvider
extends org.glassfish.jersey.spi.ThreadPoolExecutorProvider
| Constructor and Description |
|---|
VitamThreadPoolExecutorProvider(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected ThreadPoolExecutor |
createExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
void |
dispose(ExecutorService executorService) |
protected ThreadFactory |
getBackingThreadFactory() |
protected int |
getCorePoolSize() |
ExecutorService |
getExecutorService() |
protected long |
getKeepAliveTime() |
protected int |
getMaximumPoolSize() |
protected BlockingQueue<Runnable> |
getWorkQueue() |
createExecutor, preDestroypublic VitamThreadPoolExecutorProvider(String name)
name - public ExecutorService getExecutorService()
getExecutorService in interface org.glassfish.jersey.spi.ExecutorServiceProvidergetExecutorService in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderprotected ThreadPoolExecutor createExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
createExecutor in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderprotected int getMaximumPoolSize()
getMaximumPoolSize in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderprotected long getKeepAliveTime()
getKeepAliveTime in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderprotected BlockingQueue<Runnable> getWorkQueue()
getWorkQueue in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderpublic void dispose(ExecutorService executorService)
dispose in interface org.glassfish.jersey.spi.ExecutorServiceProviderdispose in class org.glassfish.jersey.spi.ThreadPoolExecutorProviderprotected int getCorePoolSize()
getCorePoolSize in class org.glassfish.jersey.spi.AbstractThreadPoolProvider<ThreadPoolExecutor>protected ThreadFactory getBackingThreadFactory()
getBackingThreadFactory in class org.glassfish.jersey.spi.AbstractThreadPoolProvider<ThreadPoolExecutor>Copyright © 2018 Vitam. All rights reserved.