StoreBackedPeriodicGate
public final class StoreBackedPeriodicGate implements PeriodicGate
源码Source
io/agentscope/harness/agent/coordination/StoreBackedPeriodicGate.java:33–90存储 Backed Periodic Gate,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.coordination 包,实现 PeriodicGate。核心成员包括 tryClaim、StoreBackedPeriodicGate。
Distributed PeriodicGate backed by BaseStore#putIfVersion. Enables cross-node
coordination of periodic background work (memory maintenance, skill curator, etc.).
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public StoreBackedPeriodicGate(BaseStore store) | 初始化 `StoreBackedPeriodicGate` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean tryClaim(String name, Duration minGap) | 执行 `tryClaim` 方法。 Performs the try claim operation. |
构造器详情Constructor Detail
StoreBackedPeriodicGate
public StoreBackedPeriodicGate(BaseStore store)
初始化 StoreBackedPeriodicGate 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
store | BaseStore | 存储实例(类型 `BaseStore`)。The store. |
源码Source
io/agentscope/harness/agent/coordination/StoreBackedPeriodicGate.java:43–45方法详情Method Detail
tryClaim
public boolean tryClaim(String name, Duration minGap)
执行 tryClaim 方法。
Performs the try claim operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
minGap | Duration | 最小 Gap(类型 `Duration`)。The min gap. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/coordination/StoreBackedPeriodicGate.java:47–78