Class AgentRestartPolicy

java.lang.Object
com.tnsai.resilience.recovery.AgentRestartPolicy

public final class AgentRestartPolicy extends Object
Configuration for agent restart/degrade decisions driven by repeated failures.
  • Method Details

    • getDegradeThreshold

      public int getDegradeThreshold()
    • getRestartThreshold

      public int getRestartThreshold()
    • getCooldown

      public Duration getCooldown()
    • builder

      public static AgentRestartPolicy.Builder builder()
    • defaultPolicy

      public static AgentRestartPolicy defaultPolicy()