public class Acceptor<U> extends Object implements 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() |
void |
stop()
Deprecated.
This method will be removed in Tomcat 10.1.x onwards.
Use
stop(int) instead. |
void |
stop(int waitSeconds)
Signals the Acceptor to stop, optionally waiting for that stop process
to complete before returning.
|
protected volatile Acceptor.AcceptorState state
public Acceptor(AbstractEndpoint<?,U> endpoint)
public final Acceptor.AcceptorState getState()
@Deprecated public void stop()
stop(int)
instead.public void stop(int waitSeconds)
waitSeconds
- The time to wait in seconds. Use a value less than
zero for no wait.protected int handleExceptionWithDelay(int currentErrorDelay)
currentErrorDelay
- The current delay being applied on failureCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.