Interface Configuration


public interface Configuration
  • 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

      default MetricsAdapter metricsAdapter()
      Returns the adapter to be used for emitting metrics. Use NoopAdapter if metrics should be disabled. Use MicrometerAdapter if metrics should be emitted to given Micrometer registry.
    • onShutdown

      default void onShutdown() throws InterruptedException
      Callback executed at the very end of StandaloneFaultTolerance.shutdown(), when all internal resources have been shut down.
      Throws:
      InterruptedException