Class HeartbeatReceiver<I>
java.lang.Object
org.apache.flink.runtime.heartbeat.HeartbeatReceiver<I>
- Type Parameters:
I- Type of the payload which is received by the heartbeat target
- All Implemented Interfaces:
HeartbeatTarget<I>
The receiver implementation of
HeartbeatTarget, which mutes the HeartbeatTarget#requestHeartbeat(ResourceID, I). The extender only has to care about the
receiving logic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CompletableFuture<Void>requestHeartbeat(ResourceID requestOrigin, I heartbeatPayload) Requests a heartbeat from the target.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.heartbeat.HeartbeatTarget
receiveHeartbeat
-
Constructor Details
-
HeartbeatReceiver
public HeartbeatReceiver()
-
-
Method Details
-
requestHeartbeat
Description copied from interface:HeartbeatTargetRequests a heartbeat from the target. Each heartbeat request can carry a payload which contains additional information for the heartbeat target.- Specified by:
requestHeartbeatin interfaceHeartbeatTarget<I>- Parameters:
requestOrigin- Resource ID identifying the machine issuing the heartbeat request.heartbeatPayload- Payload of the heartbeat request. Null indicates an empty payload.- Returns:
- Future that is completed exceptionally if the heartbeat request could not be sent to the target
-