Nio2Endpoint.SocketProcessor (Apache Tomcat 11.0.24 API Documentation)
Description: declaration: package: org.apache.tomcat.util.net, class: Nio2Endpoint, class: SocketProcessor

# Class Nio2Endpoint.SocketProcessor

java.lang.Object
org.apache.tomcat.util.net.SocketProcessorBase<Nio2Channel>
org.apache.tomcat.util.net.Nio2Endpoint.SocketProcessor

All Implemented Interfaces:
  `Runnable`

Enclosing class:
  `Nio2Endpoint`

protected class Nio2Endpoint.SocketProcessor extends SocketProcessorBase<Nio2Channel>
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

  Constructors
  Constructor
  Description
  `SocketProcessor(SocketWrapperBase<Nio2Channel> socketWrapper, SocketEvent event)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `doRun()`
  Performs the actual socket processing work.

  ### Methods inherited from class SocketProcessorBase

  `reset, run`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SocketProcessor

    public SocketProcessor(SocketWrapperBase<Nio2Channel> socketWrapper, SocketEvent event)

- ## Method Details

  - ### doRun

    protected void doRun()
    Description copied from class: `SocketProcessorBase`
    Performs the actual socket processing work. Subclasses implement this method to define the specific processing logic for each endpoint type.
    Specified by:
      `doRun` in class `SocketProcessorBase<Nio2Channel>`