public static final class ResilienceConfiguration.BulkheadConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CONCURRENT_CALLS
The default maximum number of concurrent calls.
|
static Duration |
DEFAULT_MAX_WAIT_DURATION
The default maximum duration a thread will wait for to enter the bulkhead.
|
Modifier and Type | Method and Description |
---|---|
static ResilienceConfiguration.BulkheadConfiguration |
disabled()
Instantiates a new
BulkheadConfiguration that allows for unlimited concurrent calls, effectively
disabling the bulkhead functionality. |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEnabled()
Get the status indicator for the Bulkhead.
|
int |
maxConcurrentCalls()
The maximum number of concurrent calls.
|
ResilienceConfiguration.BulkheadConfiguration |
maxConcurrentCalls(int maxConcurrentCalls)
The maximum number of concurrent calls.
|
@NonNull Duration |
maxWaitDuration()
The maximum duration the calling thread will wait to enter the bulkhead.
|
ResilienceConfiguration.BulkheadConfiguration |
maxWaitDuration(@NonNull Duration maxWaitDuration)
The maximum duration the calling thread will wait to enter the bulkhead.
|
static ResilienceConfiguration.BulkheadConfiguration |
of() |
public static final int DEFAULT_MAX_CONCURRENT_CALLS
public static final Duration DEFAULT_MAX_WAIT_DURATION
public boolean isEnabled()
@Nonnull public static ResilienceConfiguration.BulkheadConfiguration disabled()
BulkheadConfiguration
that allows for unlimited concurrent calls, effectively
disabling the bulkhead functionality.BulkheadConfiguration
.@Nonnull public static ResilienceConfiguration.BulkheadConfiguration of()
public int maxConcurrentCalls()
@NonNull public @NonNull Duration maxWaitDuration()
@Nonnull public ResilienceConfiguration.BulkheadConfiguration maxConcurrentCalls(int maxConcurrentCalls)
this
.@Nonnull public ResilienceConfiguration.BulkheadConfiguration maxWaitDuration(@NonNull @NonNull Duration maxWaitDuration)
this
.Copyright © 2021 SAP SE. All rights reserved.