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
Modifier and TypeMethodDescriptionvoid
completed
(AsynchronousSocketChannel socket, Void attachment) void
void
run()
void
stopMillis
(int waitMilliseconds) Signals the Acceptor to stop.Methods inherited from class org.apache.tomcat.util.net.Acceptor
getState, handleExceptionWithDelay
-
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>
-
stopMillis
public void stopMillis(int waitMilliseconds) Signals the Acceptor to stop.- Overrides:
stopMillis
in classAcceptor<AsynchronousSocketChannel>
- Parameters:
waitMilliseconds
- Ignored for NIO2.
-
completed
- Specified by:
completed
in interfaceCompletionHandler<AsynchronousSocketChannel,
Void>
-
failed
- Specified by:
failed
in interfaceCompletionHandler<AsynchronousSocketChannel,
Void>
-