| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractEndpoint | |
| private static final int | |
| private static final Log | |
| private static final int | |
| private static final StringManager | |
| protected volatile Acceptor. | |
| private volatile boolean | |
| private final CountDownLatch | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Acceptor. | |
| pack-priv final String | |
| protected int | Returns: The delay to apply on the next failureThe current delay being applied on failure 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. |
| public void | |
| pack-priv final void | |
| public void | stop(int
The time to wait in seconds. Use a value less than
zero for no wait. waitSeconds)Signals the Acceptor to stop, optionally waiting for that stop process to complete before returning. |
| endpoint | back to summary |
|---|---|
| private final AbstractEndpoint<?, U> endpoint | |
| INITIAL_ERROR_DELAY | back to summary |
|---|---|
| private static final int INITIAL_ERROR_DELAY | |
| log | back to summary |
|---|---|
| private static final Log log | |
| MAX_ERROR_DELAY | back to summary |
|---|---|
| private static final int MAX_ERROR_DELAY | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| state | back to summary |
|---|---|
| protected volatile Acceptor. | |
| stopCalled | back to summary |
|---|---|
| private volatile boolean stopCalled | |
| stopLatch | back to summary |
|---|---|
| private final CountDownLatch stopLatch | |
| threadName | back to summary |
|---|---|
| private String threadName | |
| Acceptor | back to summary |
|---|---|
| public Acceptor(AbstractEndpoint<?, U> endpoint) | |
| getState | back to summary |
|---|---|
| public final Acceptor. | |
| getThreadName | back to summary |
|---|---|
| pack-priv final String getThreadName() | |
| handleExceptionWithDelay | back to summary |
|---|---|
| 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. For example, this can happen if the ulimit for open files is reached.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| setThreadName | back to summary |
|---|---|
| pack-priv final void setThreadName(final String threadName) | |
| stop | back to summary |
|---|---|
| public void stop(int waitSeconds) Signals the Acceptor to stop, optionally waiting for that stop process to complete before returning. If a wait is requested and the stop does not complete in that time a warning will be logged.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Acceptor. | |
| public static final Acceptor. | |
| public static final Acceptor. | |
| public static final Acceptor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Acceptor. | |
| public static Acceptor. |
| ENDED | back to summary |
|---|---|
| public static final Acceptor. | |
| NEW | back to summary |
|---|---|
| public static final Acceptor. | |
| PAUSED | back to summary |
|---|---|
| public static final Acceptor. | |
| RUNNING | back to summary |
|---|---|
| public static final Acceptor. | |
| AcceptorState | back to summary |
|---|---|
| private AcceptorState() | |
| valueOf | back to summary |
|---|---|
| public static Acceptor. | |
| values | back to summary |
|---|---|
| public static Acceptor. | |