Class HeartbeatManager
java.lang.Object
io.temporal.internal.worker.HeartbeatManager
Manages periodic worker heartbeat RPCs. Routes workers to per-namespace
HeartbeatManager.SharedNamespaceWorker instances, each with its own scheduler.-
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatManager(io.temporal.serviceclient.WorkflowServiceStubs service, String identity, Duration interval) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterWorker(String namespace, String workerInstanceKey, Supplier<io.temporal.api.worker.v1.WorkerHeartbeat> callback, Runnable onHeartbeatAccepted) Register a worker's heartbeat callback.voidshutdown()voidunregisterWorker(String namespace, String workerInstanceKey) Unregister a worker.
-
Constructor Details
-
HeartbeatManager
-
-
Method Details
-
registerWorker
public void registerWorker(String namespace, String workerInstanceKey, Supplier<io.temporal.api.worker.v1.WorkerHeartbeat> callback, Runnable onHeartbeatAccepted) Register a worker's heartbeat callback. Creates a per-namespace SharedNamespaceWorker if this is the first worker for the given namespace. -
unregisterWorker
-
shutdown
public void shutdown()
-