Class StoreBackedPeriodicGate
java.lang.Object
io.agentscope.harness.agent.coordination.StoreBackedPeriodicGate
- All Implemented Interfaces:
PeriodicGate
Distributed
PeriodicGate backed by BaseStore.putIfVersion(java.util.List<java.lang.String>, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>, long). Enables cross-node
coordination of periodic background work (memory maintenance, skill curator, etc.).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StoreBackedPeriodicGate
-
-
Method Details
-
tryClaim
Description copied from interface:PeriodicGateAttempts to claim the named periodic slot.- Specified by:
tryClaimin interfacePeriodicGate- Parameters:
name- logical slot identifier (e.g."memory-flush:USER:alice"or"skill-curator")minGap- minimum elapsed time since the last successful claim- Returns:
trueif the caller won the claim and may proceed,falseotherwise
-