AS AgentScopeAPI 手册 / API Reference

CoordLeaseEntity

@Entity @Table( name = "builder_coord_lease", uniqueConstraints = @UniqueConstraint( name = "uk_builder_coord_lease_key", columnNames = {"lease_kind", "lease_key"}), indexes = { @Index(name = "ix_builder_coord_lease_expires", columnList = "expires_at"), @Index(name = "ix_builder_coord_lease_kind", columnList = "lease_kind") }) public class CoordLeaseEntity
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:28–126

Coord Lease Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getLeaseKind、setLeaseKind、getLeaseKey、setLeaseKey。

Shared lease rows: turn ownership and deployment fire windows.

字段摘要Field Summary

字段Field类型Type说明Description
KIND_TURN
staticfinal
String
种类轮次字段。
The KIND TURN field.
KIND_FIRE
staticfinal
String
种类 FIRE字段。
The KIND FIRE field.
KIND_INTERRUPT
staticfinal
String
种类中断字段。
Cross-replica turn interrupt request keyed by session id.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getLeaseKind()
获取 `getLeaseKind`。
Returns the lease kind.
public void setLeaseKind(String leaseKind)
设置 `setLeaseKind`。
Sets the lease kind.
public String getLeaseKey()
获取 `getLeaseKey`。
Returns the lease key.
public void setLeaseKey(String leaseKey)
设置 `setLeaseKey`。
Sets the lease key.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getInstanceId()
获取实例标识。
Returns the instance id.
public void setInstanceId(String instanceId)
设置实例标识。
Sets the instance id.
public long getAcquiredAt()
获取 `getAcquiredAt`。
Returns the acquired at.
public void setAcquiredAt(long acquiredAt)
设置 `setAcquiredAt`。
Sets the acquired at.
public long getExpiresAt()
获取过期 At。
Returns the expires at.
public void setExpiresAt(long expiresAt)
设置过期 At。
Sets the expires at.

字段详情Field Detail

KIND_TURN

public static final String KIND_TURN
staticfinal

种类轮次字段。声明为 public static final String KIND_TURN。

The KIND TURN field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:41

KIND_FIRE

public static final String KIND_FIRE
staticfinal

种类 FIRE字段。声明为 public static final String KIND_FIRE。

The KIND FIRE field.

源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:42

KIND_INTERRUPT

public static final String KIND_INTERRUPT
staticfinal

种类中断字段。声明为 public static final String KIND_INTERRUPT。

Cross-replica turn interrupt request keyed by session id.

源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:45

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:71–73

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:75–77

getLeaseKind

public String getLeaseKind()

获取 getLeaseKind。

Returns the lease kind.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:79–81

setLeaseKind

public void setLeaseKind(String leaseKind)

设置 setLeaseKind。

Sets the lease kind.

参数Parameters
名称Name类型Type说明Description
leaseKindStringlease 种类(类型 `String`)。The lease kind.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:83–85

getLeaseKey

public String getLeaseKey()

获取 getLeaseKey。

Returns the lease key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:87–89

setLeaseKey

public void setLeaseKey(String leaseKey)

设置 setLeaseKey。

Sets the lease key.

参数Parameters
名称Name类型Type说明Description
leaseKeyStringlease 键(类型 `String`)。The lease key.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:91–93

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:95–97

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:99–101

getInstanceId

public String getInstanceId()

获取实例标识。

Returns the instance id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:103–105

setInstanceId

public void setInstanceId(String instanceId)

设置实例标识。

Sets the instance id.

参数Parameters
名称Name类型Type说明Description
instanceIdString实例标识(类型 `String`)。The instance id.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:107–109

getAcquiredAt

public long getAcquiredAt()

获取 getAcquiredAt。

Returns the acquired at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:111–113

setAcquiredAt

public void setAcquiredAt(long acquiredAt)

设置 setAcquiredAt。

Sets the acquired at.

参数Parameters
名称Name类型Type说明Description
acquiredAtlongacquired At(类型 `long`)。The acquired at.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:115–117

getExpiresAt

public long getExpiresAt()

获取过期 At。

Returns the expires at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:119–121

setExpiresAt

public void setExpiresAt(long expiresAt)

设置过期 At。

Sets the expires at.

参数Parameters
名称Name类型Type说明Description
expiresAtlong过期 At(类型 `long`)。The expires at.
源码Source io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:123–125
基于官方固定版本源码静态生成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.