Class DelegatingMetricsCollector<V>
java.lang.Object
io.smallrye.faulttolerance.core.metrics.DelegatingMetricsCollector<V>
- All Implemented Interfaces:
FaultToleranceStrategy<V>
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingMetricsCollector(FaultToleranceStrategy<V> delegate, MetricsProvider provider, MeteredOperation originalOperation) -
Method Summary
-
Constructor Details
-
DelegatingMetricsCollector
public DelegatingMetricsCollector(FaultToleranceStrategy<V> delegate, MetricsProvider provider, MeteredOperation originalOperation)
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anFaultToleranceContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-