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() |
getState, handleExceptionWithDelay
public Nio2Acceptor(AbstractEndpoint<?,AsynchronousSocketChannel> endpoint)
public void run()
run
in interface Runnable
run
in class Acceptor<AsynchronousSocketChannel>
public void stop()
stop
in class Acceptor<AsynchronousSocketChannel>
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-2020 Apache Software Foundation. All Rights Reserved.