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>
public abstract class HeartbeatReceiver<I> extends Object implements HeartbeatTarget<I>
The receiver implementation ofHeartbeatTarget
, which mutes theHeartbeatTarget#requestHeartbeat(ResourceID, I)
. The extender only has to care about the receiving logic.
-
-
Constructor Summary
Constructors Constructor Description HeartbeatReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, wait
-
Methods inherited from interface org.apache.flink.runtime.heartbeat.HeartbeatTarget
receiveHeartbeat
-
-
-
-
Method Detail
-
requestHeartbeat
public final CompletableFuture<Void> requestHeartbeat(ResourceID requestOrigin, I heartbeatPayload)
Description copied from interface:HeartbeatTarget
Requests a heartbeat from the target. Each heartbeat request can carry a payload which contains additional information for the heartbeat target.- Specified by:
requestHeartbeat
in 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
-
-