Class TurnBusyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.agentscope.harness.agent.gateway.TurnBusyException
All Implemented Interfaces:
Serializable

public final class TurnBusyException extends Exception
Thrown when a session turn gate cannot be acquired because another turn holds the lock.

HarnessGateway maps this to an empty Mono so duplicate wakeup or concurrent inbound requests for the same session are skipped rather than queued.

See Also:
  • Constructor Details

    • TurnBusyException

      public TurnBusyException(String gateKey)
      Creates an exception for the given gate key.
      Parameters:
      gateKey - the canonical session gate key that is busy
  • Method Details

    • getGateKey

      public String getGateKey()
      Returns the gate key that could not be acquired.
      Returns:
      the busy gate key