Handler to limit the threads per IP address for DOS protection
The ThreadLimitHandler applies a limit to the number of Threads that can be used simultaneously per remote IP address.
The handler makes a determination of the remote IP separately to
any that may be made by the ForwardedRequestCustomizer or similar:
Requests in excess of the limit will be asynchronously suspended until a thread is available.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static interface | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final String | |
| private final ConcurrentMap | |
| private final boolean | |
| private int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doStart()
Overrides org. |
| public void | |
| private String | |
| private ThreadLimitHandler. | |
| protected String | |
| public int | |
| protected int | |
| private String | |
| public void | |
| public boolean | |
| public boolean | onConditionsMet(Request
The request to handle request, Response The response to generate response, Callback The callback for completion callback)Implements abstract org. |
| protected boolean | onConditionsNotMet(Request
The request to handle request, Response The response to generate response, Callback The callback for completion callback)Implements abstract org. |
| public void | |
| public void |