@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, preDestroy
public VitamThreadPoolExecutorProvider(String name)
name
- public ExecutorService getExecutorService()
getExecutorService
in interface org.glassfish.jersey.spi.ExecutorServiceProvider
getExecutorService
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
protected ThreadPoolExecutor createExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
createExecutor
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
protected int getMaximumPoolSize()
getMaximumPoolSize
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
protected long getKeepAliveTime()
getKeepAliveTime
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
protected BlockingQueue<Runnable> getWorkQueue()
getWorkQueue
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
public void dispose(ExecutorService executorService)
dispose
in interface org.glassfish.jersey.spi.ExecutorServiceProvider
dispose
in class org.glassfish.jersey.spi.ThreadPoolExecutorProvider
protected 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.