I
- Type of the payload which is received by the heartbeat targetpublic 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 |
---|
HeartbeatReceiver() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
requestHeartbeat(ResourceID requestOrigin,
I heartbeatPayload)
Requests a heartbeat from the target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
receiveHeartbeat
public final CompletableFuture<Void> requestHeartbeat(ResourceID requestOrigin, I heartbeatPayload)
HeartbeatTarget
requestHeartbeat
in interface HeartbeatTarget<I>
requestOrigin
- Resource ID identifying the machine issuing the heartbeat request.heartbeatPayload
- Payload of the heartbeat request. Null indicates an empty payload.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.