java.lang.RunnableNio2Endpoint.Nio2Acceptorpublic class Acceptor<U>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Acceptor.AcceptorState |
| Modifier and Type | Field | Description |
|---|---|---|
protected Acceptor.AcceptorState |
state |
| Constructor | Description |
|---|---|
Acceptor(AbstractEndpoint<?,U> endpoint) |
| Modifier and Type | Method | Description |
|---|---|---|
Acceptor.AcceptorState |
getState() |
|
protected int |
handleExceptionWithDelay(int currentErrorDelay) |
Handles exceptions where a delay is required to prevent a Thread from
entering a tight loop which will consume CPU and may also trigger large
amounts of logging.
|
void |
run() |
protected volatile Acceptor.AcceptorState state
public Acceptor(AbstractEndpoint<?,U> endpoint)
public final Acceptor.AcceptorState getState()
public void run()
run in interface java.lang.Runnableprotected int handleExceptionWithDelay(int currentErrorDelay)
currentErrorDelay - The current delay being applied on failureCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.