Class CompletionStageMetricsCollector<V>
java.lang.Object
io.smallrye.faulttolerance.core.metrics.MetricsCollector<CompletionStage<V>>
io.smallrye.faulttolerance.core.metrics.CompletionStageMetricsCollector<V>
- All Implemented Interfaces:
FaultToleranceStrategy<CompletionStage<V>>
-
Constructor Summary
ConstructorsConstructorDescriptionCompletionStageMetricsCollector(FaultToleranceStrategy<CompletionStage<V>> delegate, MetricsRecorder metrics, MeteredOperation operation) -
Method Summary
Modifier and TypeMethodDescriptionapply(InvocationContext<CompletionStage<V>> ctx) Apply the fault tolerance strategy around the targetCallable.Methods inherited from class io.smallrye.faulttolerance.core.metrics.MetricsCollector
registerMetrics
-
Constructor Details
-
CompletionStageMetricsCollector
public CompletionStageMetricsCollector(FaultToleranceStrategy<CompletionStage<V>> delegate, MetricsRecorder metrics, MeteredOperation operation)
-
-
Method Details
-
apply
Description copied from interface:FaultToleranceStrategyApply the fault tolerance strategy around the targetCallable. TheCallableis wrapped in anInvocationContext.- Specified by:
applyin interfaceFaultToleranceStrategy<V>- Overrides:
applyin classMetricsCollector<CompletionStage<V>>- Parameters:
ctx- theInvocationContextwrapping theCallableguarded by this fault tolerance strategy- Returns:
- result computed by the target
Callable
-