I- Type of the payload which is received by the heartbeat target
public abstract class HeartbeatReceiver<I> extends Object implements HeartbeatTarget<I>
HeartbeatTarget, which mutes the
HeartbeatTarget#requestHeartbeat(ResourceID, I). The extender only has to care about the receiving logic.
|Constructor and Description|
|Modifier and Type||Method and Description|
Requests a heartbeat from the target.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final CompletableFuture<Void> requestHeartbeat(ResourceID requestOrigin, I heartbeatPayload)
requestOrigin- Resource ID identifying the machine issuing the heartbeat request.
heartbeatPayload- Payload of the heartbeat request. Null indicates an empty payload.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.