Package io.github.resilience4j.bulkhead
Interface Bulkhead.Metrics
- Enclosing interface:
- Bulkhead
public static interface Bulkhead.Metrics
-
Method Summary
Modifier and Type Method Description intgetAvailableConcurrentCalls()Returns the number of parallel executions this bulkhead can support at this point in time.intgetMaxAllowedConcurrentCalls()Returns the configured max amount of concurrent calls allowed for this bulkhead, basically it's a top inclusive bound for the value returned fromgetAvailableConcurrentCalls().
-
Method Details
-
getAvailableConcurrentCalls
int getAvailableConcurrentCalls()Returns the number of parallel executions this bulkhead can support at this point in time.- Returns:
- remaining bulkhead depth
-
getMaxAllowedConcurrentCalls
int getMaxAllowedConcurrentCalls()Returns the configured max amount of concurrent calls allowed for this bulkhead, basically it's a top inclusive bound for the value returned fromgetAvailableConcurrentCalls().- Returns:
- max allowed concurrent calls
-