- Enclosing class:
Ft
Bulkhead protects a resource that cannot serve unlimited parallel
requests.
When the limit of parallel execution is reached, requests are enqueued
until the queue length is reached. Once both the limit and queue are full,
additional attempts to invoke will end with a failed response with
BulkheadException
.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
Maximal number of parallel requests going through this bulkhead.Name for debugging, error reporting, monitoring.int
Maximal number of enqueued requests waiting for processing.
-
Element Details
-
limit
int limitMaximal number of parallel requests going through this bulkhead. When the limit is reached, additional requests are enqueued.- Returns:
- maximal number of parallel calls, defaults is 10
- Default:
10
-
queueLength
int queueLengthMaximal number of enqueued requests waiting for processing. When the limit is reached, additional attempts to invoke a request will receive aBulkheadException
.- Returns:
- length of the queue
- Default:
10
-
name
String nameName for debugging, error reporting, monitoring.- Returns:
- name of this bulkhead
- Default:
""
-