I
- Type of the payload which is sent to the heartbeat targetpublic 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 |
---|
HeartbeatSender() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
receiveHeartbeat(ResourceID heartbeatOrigin,
I heartbeatPayload)
Sends a heartbeat response to the target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestHeartbeat
public final CompletableFuture<Void> receiveHeartbeat(ResourceID heartbeatOrigin, I heartbeatPayload)
HeartbeatTarget
receiveHeartbeat
in interface HeartbeatTarget<I>
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.