Class NioEndpoint.SocketProcessor
java.lang.Object
org.apache.tomcat.util.net.SocketProcessorBase<NioChannel>
org.apache.tomcat.util.net.NioEndpoint.SocketProcessor
- All Implemented Interfaces:
Runnable
- Enclosing class:
NioEndpoint
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool.
-
Field Summary
Fields inherited from class SocketProcessorBase
event, socketWrapper -
Constructor Summary
ConstructorsConstructorDescriptionSocketProcessor(SocketWrapperBase<NioChannel> socketWrapper, SocketEvent event) Creates a new socket processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoRun()Performs the actual socket processing work.Methods inherited from class SocketProcessorBase
reset, run
-
Constructor Details
-
SocketProcessor
Creates a new socket processor.- Parameters:
socketWrapper- The socket wrapperevent- The socket event
-
-
Method Details
-
doRun
protected void doRun()Description copied from class:SocketProcessorBasePerforms the actual socket processing work. Subclasses implement this method to define the specific processing logic for each endpoint type.- Specified by:
doRunin classSocketProcessorBase<NioChannel>
-