public class Acceptor<U>
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
Acceptor.AcceptorState |
Modifier and Type | Field and Description |
---|---|
protected Acceptor.AcceptorState |
state |
Constructor and Description |
---|
Acceptor(AbstractEndpoint<?,U> endpoint) |
Modifier and Type | Method and 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.Runnable
protected int handleExceptionWithDelay(int currentErrorDelay)
currentErrorDelay
- The current delay being applied on failureCopyright © 2000-2023 Apache Software Foundation. All Rights Reserved.