TurnBusyException
public final class TurnBusyException extends Exception
源码Source
io/agentscope/harness/agent/gateway/TurnBusyException.java:24–46轮次 Busy 异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.gateway 包,继承自 Exception。核心成员包括 getGateKey、TurnBusyException。
Thrown when a session turn gate cannot be acquired because another turn holds the lock.
HarnessGateway maps this to an empty reactor.core.publisher.Mono so duplicate
wakeup or concurrent inbound requests for the same session are skipped rather than queued.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public TurnBusyException(String gateKey) | 初始化 `TurnBusyException` 实例。 Creates an exception for the given gate key. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getGateKey() | 获取 `getGateKey`。 Returns the gate key that could not be acquired. |
构造器详情Constructor Detail
TurnBusyException
public TurnBusyException(String gateKey)
初始化 TurnBusyException 实例。
Creates an exception for the given gate key.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
gateKey | String | gate 键(类型 `String`)。the canonical session gate key that is busy |
源码Source
io/agentscope/harness/agent/gateway/TurnBusyException.java:33–36方法详情Method Detail
getGateKey
public String getGateKey()
获取 getGateKey。
Returns the gate key that could not be acquired.
String返回字符串结果。the busy gate key
源码Source
io/agentscope/harness/agent/gateway/TurnBusyException.java:43–45