Class AgentRecoveryManager.RecoveryPolicy

java.lang.Object
com.tnsai.coordination.supervisor.AgentRecoveryManager.RecoveryPolicy
Enclosing class:
AgentRecoveryManager

public static final class AgentRecoveryManager.RecoveryPolicy extends Object
Policy governing recovery behavior.
  • Method Details

    • maxRetries

      public int maxRetries()
      Maximum number of recovery retries before giving up.
    • cooldown

      public Duration cooldown()
      Minimum time between recovery attempts for the same agent.
    • escalateAfter

      public int escalateAfter()
      Number of failed retries after which to escalate.
    • defaultAction

      public AgentRecoveryManager.RecoveryAction defaultAction()
      Default recovery action to take.
    • builder