Package org.apache.tomcat.util.net
Interface AbstractEndpoint.Handler<S>
- 
- All Known Implementing Classes:
- AbstractProtocol.ConnectionHandler
 - Enclosing class:
- AbstractEndpoint<S,U>
 
 public static interface AbstractEndpoint.Handler<S>
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classAbstractEndpoint.Handler.SocketStateDifferent types of socket states to react upon.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetGlobal()Obtain the GlobalRequestProcessor associated with the handler.java.util.Set<S>getOpenSockets()Deprecated.Unused, will be removed in Tomcat 10, replaced by AbstractEndpoint.getConnectionsvoidpause()Inform the handler that the endpoint has stopped accepting any new connections.AbstractEndpoint.Handler.SocketStateprocess(SocketWrapperBase<S> socket, SocketEvent status)Process the provided socket with the given current status.voidrecycle()Recycle resources associated with the handler.voidrelease(SocketWrapperBase<S> socketWrapper)Release any resources associated with the given SocketWrapper.
 
- 
- 
- 
Method Detail- 
processAbstractEndpoint.Handler.SocketState process(SocketWrapperBase<S> socket, SocketEvent status) Process the provided socket with the given current status.- Parameters:
- socket- The socket to process
- status- The current socket status
- Returns:
- The state of the socket after processing
 
 - 
getGlobaljava.lang.Object getGlobal() Obtain the GlobalRequestProcessor associated with the handler.- Returns:
- the GlobalRequestProcessor
 
 - 
getOpenSockets@Deprecated java.util.Set<S> getOpenSockets() Deprecated.Unused, will be removed in Tomcat 10, replaced by AbstractEndpoint.getConnectionsObtain the currently open sockets.- Returns:
- The sockets for which the handler is tracking a currently open connection
 
 - 
releasevoid release(SocketWrapperBase<S> socketWrapper) Release any resources associated with the given SocketWrapper.- Parameters:
- socketWrapper- The socketWrapper to release resources for
 
 - 
pausevoid pause() Inform the handler that the endpoint has stopped accepting any new connections. Typically, the endpoint will be stopped shortly afterwards but it is possible that the endpoint will be resumed so the handler should not assume that a stop will follow.
 - 
recyclevoid recycle() Recycle resources associated with the handler.
 
- 
 
-