Class SemaphoreBulkhead.BulkheadMetrics
java.lang.Object
io.github.resilience4j.bulkhead.internal.SemaphoreBulkhead.BulkheadMetrics
- All Implemented Interfaces:
Bulkhead.Metrics
- Enclosing class:
SemaphoreBulkhead
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of parallel executions this bulkhead can support at this point in time.intReturns the configured max amount of concurrent calls allowed for this bulkhead, basically it's a top inclusive bound for the value returned fromBulkhead.Metrics.getAvailableConcurrentCalls().
-
Constructor Details
-
BulkheadMetrics
private BulkheadMetrics()
-
-
Method Details
-
getAvailableConcurrentCalls
public int getAvailableConcurrentCalls()Description copied from interface:Bulkhead.MetricsReturns the number of parallel executions this bulkhead can support at this point in time.- Specified by:
getAvailableConcurrentCallsin interfaceBulkhead.Metrics- Returns:
- remaining bulkhead depth
-
getMaxAllowedConcurrentCalls
public int getMaxAllowedConcurrentCalls()Description copied from interface:Bulkhead.MetricsReturns the configured max amount of concurrent calls allowed for this bulkhead, basically it's a top inclusive bound for the value returned fromBulkhead.Metrics.getAvailableConcurrentCalls().- Specified by:
getMaxAllowedConcurrentCallsin interfaceBulkhead.Metrics- Returns:
- max allowed concurrent calls
-