Class WrappedWorkerPool
- java.lang.Object
-
- com.github.fmjsjx.libnetty.http.server.component.WrappedWorkerPool
-
- All Implemented Interfaces:
HttpServerComponent,WorkerPool
public class WrappedWorkerPool extends java.lang.Object implements WorkerPool
The wrapped implementation ofWorkerPool.- Since:
- 2.2
- See Also:
WorkerPool
-
-
Constructor Summary
Constructors Constructor Description WrappedWorkerPool(java.util.concurrent.Executor wrapped)Constructs a newWrappedWorkerPoolwith the specifiedwrappedexecutor.WrappedWorkerPool(java.util.concurrent.Executor wrapped, boolean cascade)Constructs a newWrappedWorkerPoolwith the specifiedwrappedexecutor.
-
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
-
WrappedWorkerPool
public WrappedWorkerPool(java.util.concurrent.Executor wrapped)
Constructs a newWrappedWorkerPoolwith the specifiedwrappedexecutor.- Parameters:
wrapped- the wrapped executor
-
WrappedWorkerPool
public WrappedWorkerPool(java.util.concurrent.Executor wrapped, boolean cascade)Constructs a newWrappedWorkerPoolwith the specifiedwrappedexecutor.- Parameters:
wrapped- the wrapped executorcascade- if the wrapped executor will be cascaded shutdown or not
-
-
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
-
-