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
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:28–126Coord 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_TURNstaticfinal | String | 种类轮次字段。 The KIND TURN field. |
KIND_FIREstaticfinal | String | 种类 FIRE字段。 The KIND FIRE field. |
KIND_INTERRUPTstaticfinal | 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
种类轮次字段。声明为 public static final String KIND_TURN。
The KIND TURN field.
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:41KIND_FIRE
public static final String KIND_FIRE
种类 FIRE字段。声明为 public static final String KIND_FIRE。
The KIND FIRE field.
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:42KIND_INTERRUPT
public static final String KIND_INTERRUPT
种类中断字段。声明为 public static final String KIND_INTERRUPT。
Cross-replica turn interrupt request keyed by session id.
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:45方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:71–73setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:75–77getLeaseKind
public String getLeaseKind()
获取 getLeaseKind。
Returns the lease kind.
Stringio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:79–81setLeaseKind
public void setLeaseKind(String leaseKind)
设置 setLeaseKind。
Sets the lease kind.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
leaseKind | String | lease 种类(类型 `String`)。The lease kind. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:83–85getLeaseKey
public String getLeaseKey()
获取 getLeaseKey。
Returns the lease key.
Stringio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:87–89setLeaseKey
public void setLeaseKey(String leaseKey)
设置 setLeaseKey。
Sets the lease key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
leaseKey | String | lease 键(类型 `String`)。The lease key. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:91–93getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:95–97setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:99–101getInstanceId
public String getInstanceId()
获取实例标识。
Returns the instance id.
Stringio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:103–105setInstanceId
public void setInstanceId(String instanceId)
设置实例标识。
Sets the instance id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
instanceId | String | 实例标识(类型 `String`)。The instance id. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:107–109getAcquiredAt
public long getAcquiredAt()
获取 getAcquiredAt。
Returns the acquired at.
longio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:111–113setAcquiredAt
public void setAcquiredAt(long acquiredAt)
设置 setAcquiredAt。
Sets the acquired at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
acquiredAt | long | acquired At(类型 `long`)。The acquired at. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:115–117getExpiresAt
public long getExpiresAt()
获取过期 At。
Returns the expires at.
longio/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:119–121setExpiresAt
public void setExpiresAt(long expiresAt)
设置过期 At。
Sets the expires at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
expiresAt | long | 过期 At(类型 `long`)。The expires at. |
io/agentscope/builder/web/persistence/jpa/CoordLeaseEntity.java:123–125