Interface Configuration
public interface Configuration
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanenabled()Returns whether fault tolerance strategies should be enabled.executor()Returns the executor for thread offloads.default MetricsAdapterReturns the adapter to be used for emitting metrics.default voidCallback executed at the very end ofStandaloneFaultTolerance.shutdown(), when all internal resources have been shut down.
-
Method Details
-
enabled
default boolean enabled()Returns whether fault tolerance strategies should be enabled. If they are disabled, only fallback and thread offload will be used. -
executor
ExecutorService executor()Returns the executor for thread offloads. -
metricsAdapter
Returns the adapter to be used for emitting metrics. UseNoopAdapterif metrics should be disabled. UseMicrometerAdapterif metrics should be emitted to given Micrometer registry. -
onShutdown
Callback executed at the very end ofStandaloneFaultTolerance.shutdown(), when all internal resources have been shut down.- Throws:
InterruptedException
-