Package org.apache.tomcat.util.net
Class Nio2Endpoint.Nio2Acceptor
- java.lang.Object
-
- org.apache.tomcat.util.net.Acceptor<java.nio.channels.AsynchronousSocketChannel>
-
- org.apache.tomcat.util.net.Nio2Endpoint.Nio2Acceptor
-
- All Implemented Interfaces:
java.lang.Runnable,java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
- Enclosing class:
- Nio2Endpoint
protected class Nio2Endpoint.Nio2Acceptor extends Acceptor<java.nio.channels.AsynchronousSocketChannel> implements java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.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<?,java.nio.channels.AsynchronousSocketChannel> endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleted(java.nio.channels.AsynchronousSocketChannel socket, java.lang.Void attachment)voidfailed(java.lang.Throwable t, java.lang.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<?,java.nio.channels.AsynchronousSocketChannel> endpoint)
-
-
Method Detail
-
run
public void run()
-
stop
public void stop(int waitSeconds)
Signals the Acceptor to stop.
-
completed
public void completed(java.nio.channels.AsynchronousSocketChannel socket, java.lang.Void attachment)- Specified by:
completedin interfacejava.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
-
failed
public void failed(java.lang.Throwable t, java.lang.Void attachment)- Specified by:
failedin interfacejava.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
-
-