Interface WorkerPool
-
- All Superinterfaces:
HttpServerComponent
- All Known Implementing Classes:
DefaultWorkerPool,WrappedWorkerPool
public interface WorkerPool extends HttpServerComponent
Provides a worker thread pool.- Since:
- 1.3
- See Also:
DefaultWorkerPool,WrappedWorkerPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()Closes thisHttpServerComponentand releases any system resources associated with it.default java.lang.Class<WorkerPool>componentType()Returns the type of the component.java.util.concurrent.Executorexecutor()Returns the executor.voidshutdown()Shutdown this worker pool.-
Methods inherited from interface com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent
onServerClosed
-
-
-
-
Method Detail
-
componentType
default java.lang.Class<WorkerPool> componentType()
Description copied from interface:HttpServerComponentReturns the type of the component.- Specified by:
componentTypein interfaceHttpServerComponent- Returns:
- the type of the component
-
executor
java.util.concurrent.Executor executor()
Returns the executor.- Returns:
- the executor
-
close
default void close() throws java.lang.ExceptionDescription copied from interface:HttpServerComponentCloses thisHttpServerComponentand releases any system resources associated with it.Default do nothing.
- Specified by:
closein interfaceHttpServerComponent- Throws:
java.lang.Exception- if any error occurs
-
shutdown
void shutdown()
Shutdown this worker pool.
-
-