Class DefaultWorkerPool
- java.lang.Object
-
- com.github.fmjsjx.libnetty.http.server.component.DefaultWorkerPool
-
- All Implemented Interfaces:
HttpServerComponent,WorkerPool
public class DefaultWorkerPool extends java.lang.Object implements WorkerPool
The default implementation ofWorkerPool.- Since:
- 1.3
- See Also:
WorkerPool
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkerPool()DefaultWorkerPool(int maximumPoolSize)DefaultWorkerPool(int corePoolSize, int maximumPoolSize)DefaultWorkerPool(int corePoolSize, int maximumPoolSize, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.Executorexecutor()Returns the executor.voidshutdown()Shutdown this worker pool.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent
onServerClosed
-
Methods inherited from interface com.github.fmjsjx.libnetty.http.server.component.WorkerPool
close, componentType
-
-
-
-
Constructor Detail
-
DefaultWorkerPool
public DefaultWorkerPool()
-
DefaultWorkerPool
public DefaultWorkerPool(int maximumPoolSize)
-
DefaultWorkerPool
public DefaultWorkerPool(int corePoolSize, int maximumPoolSize)
-
DefaultWorkerPool
public DefaultWorkerPool(int corePoolSize, int maximumPoolSize, java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue)
-
-
Method Detail
-
executor
public java.util.concurrent.Executor executor()
Description copied from interface:WorkerPoolReturns the executor.- Specified by:
executorin interfaceWorkerPool- Returns:
- the executor
-
shutdown
public void shutdown()
Description copied from interface:WorkerPoolShutdown this worker pool.- Specified by:
shutdownin interfaceWorkerPool
-
-