I
- Type of the payload which is sent to the heartbeat targetpublic interface HeartbeatTarget<I>
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
receiveHeartbeat(ResourceID heartbeatOrigin,
I heartbeatPayload)
Sends a heartbeat response to the target.
|
CompletableFuture<Void> |
requestHeartbeat(ResourceID requestOrigin,
I heartbeatPayload)
Requests a heartbeat from the target.
|
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.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–2024 The Apache Software Foundation. All rights reserved.