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