public interface RequestConcurrencyController
| Modifier and Type | Interface and Description |
|---|---|
static class |
RequestConcurrencyController.Result
Result of the
tryRequest() call. |
| Modifier and Type | Method and Description |
|---|---|
void |
requestFinished()
Must be called after
tryRequest() to signify the request has completed. |
RequestConcurrencyController.Result |
tryRequest()
Attempts to reserve a connection for a single request, needs to be followed by
requestFinished(). |
RequestConcurrencyController.Result tryRequest()
requestFinished().RequestConcurrencyController.Result.Accepted if this connection is available and reserved for performing a single request.void requestFinished()
tryRequest() to signify the request has completed. This method should be called
no more than once for each call to tryRequest().
Generally called from a Publisher.beforeFinally(Runnable) after a tryRequest().