AS AgentScopeAPI 手册 / API Reference

ControlPlaneSandboxExecutionGuard

public final class ControlPlaneSandboxExecutionGuard implements SandboxExecutionGuard
源码Source io/agentscope/extensions/controlplane/store/ControlPlaneSandboxExecutionGuard.java:45–222

控制面沙箱执行守卫,承载智能体的部署、调度与服务化运行。位于 io.agentscope.extensions.controlplane.store 包,实现 SandboxExecutionGuard。核心成员包括 tryEnter。

Control-plane hosted SandboxExecutionGuard over /api/v1/dp/locks/*.

On acquire success the returned lease renews every 20s with a 60s TTL. If the control plane is unreachable for ~30s the guard falls back to a process-local ReentrantLock and logs a warning.

方法摘要Method Summary

方法Method说明Description
public SandboxLease tryEnter(SandboxIsolationKey key) throws InterruptedException
设置该参数。
Performs the try enter operation.

方法详情Method Detail

tryEnter

public SandboxLease tryEnter(SandboxIsolationKey key) throws InterruptedException

设置该参数。

Performs the try enter operation.

参数Parameters
名称Name类型Type说明Description
keySandboxIsolationKey键(类型 `SandboxIsolationKey`)。The key.
返回Returns SandboxLease
返回SandboxLease。Returns sandbox lease.
抛出Throws
  • InterruptedException 可能抛出 `InterruptedException`。Thrown when the operation cannot be completed.
源码Source io/agentscope/extensions/controlplane/store/ControlPlaneSandboxExecutionGuard.java:74–129

继承成员Inherited Members

继承自Methods inherited from SandboxExecutionGuard
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.