Nested Class Summary
Nested Classes
static class
static class
Field Summary
Fields
static final int
static final int
Method Summary
All Methods Static Methods Instance Methods Abstract Methods
Create a new fluent API builder to customize configuration.
Create a new fluent API builder from an existing instance.
Create a new instance with default values.
Create a new instance from configuration.
int
Maximal number of parallel requests going through this bulkhead.
Name for debugging, error reporting, monitoring.
int
Maximal number of enqueued requests waiting for processing.
Queue listeners of this bulkhead.
Field Details
DEFAULT_LIMIT
static final int DEFAULT_LIMIT
Default limit.
See Also:
DEFAULT_QUEUE_LENGTH
static final int DEFAULT_QUEUE_LENGTH
Default queue lengths.
See Also:
Method Details
builder
Create a new fluent API builder to customize configuration.
Returns:
a new builder
builder
Create a new fluent API builder from an existing instance.
Parameters:
instance
- an existing instance used as a base for the builder
Returns:
a builder based on an instance
create
Create a new instance from configuration.
Parameters:
config
- used to configure the new instance
Returns:
a new instance configured from configuration
create
Create a new instance with default values.
Returns:
a new instance
limit
int limit ()
Maximal 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
queueLength
int queueLength ()
Maximal number of enqueued requests waiting for processing.
When the limit is reached, additional attempts to invoke
a request will receive a
BulkheadException
.
Returns:
length of the queue
queueListeners
Queue listeners of this bulkhead.
Returns:
queue listeners
name
Name for debugging, error reporting, monitoring.
Returns:
name of this bulkhead