Package org.apache.tomcat.util.net
Class Acceptor<U>
java.lang.Object
org.apache.tomcat.util.net.Acceptor<U>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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
stopMillis
(int waitMilliseconds)
-
Field Details
-
state
-
-
Constructor Details
-
Acceptor
-
-
Method Details
-
getState
-
run
-
stopMillis
public void stopMillis(int waitMilliseconds) -
handleExceptionWithDelay
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.- Parameters:
currentErrorDelay
- The current delay being applied on failure- Returns:
- The delay to apply on the next failure
-