protected class Nio2Endpoint.Nio2Acceptor extends Acceptor<java.nio.channels.AsynchronousSocketChannel> implements java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
Acceptor.AcceptorState
Modifier and Type | Field and Description |
---|---|
protected int |
errorDelay |
Constructor and Description |
---|
Nio2Acceptor(AbstractEndpoint<?,java.nio.channels.AsynchronousSocketChannel> endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
completed(java.nio.channels.AsynchronousSocketChannel socket,
java.lang.Void attachment) |
void |
failed(java.lang.Throwable t,
java.lang.Void attachment) |
void |
run() |
getState, handleExceptionWithDelay
public Nio2Acceptor(AbstractEndpoint<?,java.nio.channels.AsynchronousSocketChannel> endpoint)
public void run()
public void completed(java.nio.channels.AsynchronousSocketChannel socket, java.lang.Void attachment)
completed
in interface java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
public void failed(java.lang.Throwable t, java.lang.Void attachment)
failed
in interface java.nio.channels.CompletionHandler<java.nio.channels.AsynchronousSocketChannel,java.lang.Void>
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.