Class TurnBusyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.agentscope.harness.agent.gateway.TurnBusyException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionTurnBusyException(String gateKey) Creates an exception for the given gate key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the gate key that could not be acquired.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TurnBusyException
Creates an exception for the given gate key.- Parameters:
gateKey- the canonical session gate key that is busy
-
-
Method Details
-
getGateKey
Returns the gate key that could not be acquired.- Returns:
- the busy gate key
-