Package org.apache.tomcat.util.net
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
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.tomcat.util.net.Acceptor
getState, handleExceptionWithDelay, stop
-
Field Details
-
errorDelay
protected int errorDelay
-
-
Constructor Details
-
Nio2Acceptor
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classAcceptor<AsynchronousSocketChannel>
-
stop
public void stop(int waitSeconds) Signals the Acceptor to stop.- Overrides:
stop
in classAcceptor<AsynchronousSocketChannel>
- Parameters:
waitSeconds
- Ignored for NIO2.
-
completed
- Specified by:
completed
in interfaceCompletionHandler<AsynchronousSocketChannel,
Void>
-
failed
- Specified by:
failed
in interfaceCompletionHandler<AsynchronousSocketChannel,
Void>
-