protected class Nio2Endpoint.Nio2Acceptor extends Acceptor<AsynchronousSocketChannel> implements CompletionHandler<AsynchronousSocketChannel,Void>
Acceptor.AcceptorState| Modifier and Type | Field and Description |
|---|---|
protected int |
errorDelay |
| Constructor and Description |
|---|
Nio2Acceptor(AbstractEndpoint<?,AsynchronousSocketChannel> endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(AsynchronousSocketChannel socket,
Void attachment) |
void |
failed(Throwable t,
Void attachment) |
void |
run() |
void |
stop(int waitSeconds)
Signals the Acceptor to stop.
|
getState, handleExceptionWithDelay, stoppublic Nio2Acceptor(AbstractEndpoint<?,AsynchronousSocketChannel> endpoint)
public void run()
run in interface Runnablerun in class Acceptor<AsynchronousSocketChannel>public void stop(int waitSeconds)
stop in class Acceptor<AsynchronousSocketChannel>waitSeconds - Ignored for NIO2.public void completed(AsynchronousSocketChannel socket, Void attachment)
completed in interface CompletionHandler<AsynchronousSocketChannel,Void>public void failed(Throwable t, Void attachment)
failed in interface CompletionHandler<AsynchronousSocketChannel,Void>Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.