I- Type of the payload which is sent to the heartbeat target
public abstract class HeartbeatSender<I> extends Object implements HeartbeatTarget<I>
HeartbeatTarget, which mutes the
HeartbeatTarget#receiveHeartbeat(ResourceID, I). The extender only has to care about the sending logic.
|Constructor and Description|
|Modifier and Type||Method and Description|
Sends a heartbeat response to the target.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final CompletableFuture<Void> receiveHeartbeat(ResourceID heartbeatOrigin, I heartbeatPayload)
heartbeatOrigin- Resource ID identifying the machine for which a heartbeat shall be reported.
heartbeatPayload- Payload of the heartbeat. Null indicates an empty payload.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.