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
Fields Modifier and Type Field Description protected interrorDelay
-
Constructor Summary
Constructors Constructor Description Nio2Acceptor(AbstractEndpoint<?,AsynchronousSocketChannel> endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleted(AsynchronousSocketChannel socket, Void attachment)voidfailed(Throwable t, Void attachment)voidrun()voidstop(int waitSeconds)Signals the Acceptor to stop.-
Methods inherited from class org.apache.tomcat.util.net.Acceptor
getState, handleExceptionWithDelay, stop
-
-
-
-
Constructor Detail
-
Nio2Acceptor
public Nio2Acceptor(AbstractEndpoint<?,AsynchronousSocketChannel> endpoint)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceRunnable- Overrides:
runin classAcceptor<AsynchronousSocketChannel>
-
stop
public void stop(int waitSeconds)
Signals the Acceptor to stop.- Overrides:
stopin classAcceptor<AsynchronousSocketChannel>- Parameters:
waitSeconds- Ignored for NIO2.
-
completed
public void completed(AsynchronousSocketChannel socket, Void attachment)
- Specified by:
completedin interfaceCompletionHandler<AsynchronousSocketChannel,Void>
-
failed
public void failed(Throwable t, Void attachment)
- Specified by:
failedin interfaceCompletionHandler<AsynchronousSocketChannel,Void>
-
-