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 SummaryNested classes/interfaces inherited from class org.apache.tomcat.util.net.AcceptorAcceptor.AcceptorState
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tomcat.util.net.AcceptorgetState, handleExceptionWithDelay
- 
Field Details- 
errorDelayprotected int errorDelay
 
- 
- 
Constructor Details- 
Nio2Acceptor
 
- 
- 
Method Details- 
runpublic void run()- Specified by:
- runin interface- Runnable
- Overrides:
- runin class- Acceptor<AsynchronousSocketChannel>
 
- 
stoppublic void stop(int waitSeconds) Signals the Acceptor to stop.- Overrides:
- stopin class- Acceptor<AsynchronousSocketChannel>
- Parameters:
- waitSeconds- Ignored for NIO2.
 
- 
completed- Specified by:
- completedin interface- CompletionHandler<AsynchronousSocketChannel,- Void> 
 
- 
failed- Specified by:
- failedin interface- CompletionHandler<AsynchronousSocketChannel,- Void> 
 
 
-