Class NioEndpoint.PollerEvent
java.lang.Object
org.apache.tomcat.util.net.NioEndpoint.PollerEvent
- Enclosing class:
NioEndpoint
PollerEvent, cacheable object for poller events to avoid GC
-
Constructor Summary
ConstructorsConstructorDescriptionPollerEvent(NioEndpoint.NioSocketWrapper socketWrapper, int intOps) Creates a new poller event. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the interest operations.Returns the socket wrapper.voidreset()Resets the poller event to default values.voidreset(NioEndpoint.NioSocketWrapper socketWrapper, int intOps) Resets the poller event with new values.toString()
-
Constructor Details
-
PollerEvent
Creates a new poller event.- Parameters:
socketWrapper- The socket wrapperintOps- The interest operations
-
-
Method Details
-
reset
Resets the poller event with new values.- Parameters:
socketWrapper- The socket wrapperintOps- The interest operations
-
getSocketWrapper
Returns the socket wrapper.- Returns:
- the socket wrapper
-
getInterestOps
public int getInterestOps()Returns the interest operations.- Returns:
- the interest operations
-
reset
public void reset()Resets the poller event to default values. -
toString
-