AS AgentScopeAPI 手册 / API Reference

CoordWorkerHeartbeatEntityRepository

public interface CoordWorkerHeartbeatEntityRepository extends JpaRepository<CoordWorkerHeartbeatEntity, Long>
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntityRepository.java:21–25

定义 Coord 工作进程心跳 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<CoordWorkerHeartbeatEntity, Long>。核心成员包括 findByWorkerId。

An interface in io.agentscope.builder.web.persistence.jpa that defines the contract for components that persists and restores session and memory data across calls. Declared in io.agentscope.builder.web.persistence.jpa. Implements JpaRepository.

方法摘要Method Summary

方法Method说明Description
public Optional<CoordWorkerHeartbeatEntity> findByWorkerId(String workerId)
查找通过工作进程标识。
Finds the by worker id.

方法详情Method Detail

findByWorkerId

public Optional<CoordWorkerHeartbeatEntity> findByWorkerId(String workerId)

查找通过工作进程标识。

Finds the by worker id.

参数Parameters
名称Name类型Type说明Description
workerIdString工作进程标识(类型 `String`)。The worker id.
返回Returns Optional<CoordWorkerHeartbeatEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/CoordWorkerHeartbeatEntityRepository.java:24
基于官方固定版本源码静态生成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.