Package org.apache.tomcat.util.net
Class NioEndpoint.SocketProcessor
- java.lang.Object
-
- org.apache.tomcat.util.net.SocketProcessorBase<NioChannel>
-
- org.apache.tomcat.util.net.NioEndpoint.SocketProcessor
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- NioEndpoint
protected class NioEndpoint.SocketProcessor extends SocketProcessorBase<NioChannel>
This class is the equivalent of the Worker, but will simply use in an external Executor thread pool.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.net.SocketProcessorBase
event, socketWrapper
-
-
Constructor Summary
Constructors Constructor Description SocketProcessor(SocketWrapperBase<NioChannel> socketWrapper, SocketEvent event)Creates a new socket processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRun()Performs the actual socket processing work.-
Methods inherited from class org.apache.tomcat.util.net.SocketProcessorBase
reset, run
-
-
-
-
Constructor Detail
-
SocketProcessor
public SocketProcessor(SocketWrapperBase<NioChannel> socketWrapper, SocketEvent event)
Creates a new socket processor.- Parameters:
socketWrapper- The socket wrapperevent- The socket event
-
-
Method Detail
-
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>
-
-