Class Nio2Endpoint.Nio2Acceptor
java.lang.Object
org.apache.tomcat.util.net.Acceptor<AsynchronousSocketChannel>
org.apache.tomcat.util.net.Nio2Endpoint.Nio2Acceptor
- All Implemented Interfaces:
Runnable,CompletionHandler<AsynchronousSocketChannel,Void>
- Enclosing class:
Nio2Endpoint
protected class Nio2Endpoint.Nio2Acceptor
extends Acceptor<AsynchronousSocketChannel>
implements CompletionHandler<AsynchronousSocketChannel,Void>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tomcat.util.net.Acceptor
Acceptor.AcceptorState -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleted(AsynchronousSocketChannel socket, Void attachment) voidvoidrun()voidstopMillis(int waitMilliseconds) Signals the Acceptor to stop.Methods inherited from class org.apache.tomcat.util.net.Acceptor
getState, handleExceptionWithDelay, stop, stop
-
Field Details
-
errorDelay
protected int errorDelay
-
-
Constructor Details
-
Nio2Acceptor
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classAcceptor<AsynchronousSocketChannel>
-
stopMillis
public void stopMillis(int waitMilliseconds) Signals the Acceptor to stop.- Overrides:
stopMillisin classAcceptor<AsynchronousSocketChannel>- Parameters:
waitMilliseconds- Ignored for NIO2.
-
completed
- Specified by:
completedin interfaceCompletionHandler<AsynchronousSocketChannel,Void>
-
failed
- Specified by:
failedin interfaceCompletionHandler<AsynchronousSocketChannel,Void>
-