Interface HeartbeatMonitor.Factory<O>
-
- Type Parameters:
O
- Type of the outgoing heartbeat payload
- Enclosing interface:
- HeartbeatMonitor<O>
public static interface HeartbeatMonitor.Factory<O>
This factory provides an indirection way to createHeartbeatMonitor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HeartbeatMonitor<O>
createHeartbeatMonitor(ResourceID resourceID, HeartbeatTarget<O> heartbeatTarget, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, HeartbeatListener<?,O> heartbeatListener, long heartbeatTimeoutIntervalMs, int failedRpcRequestsUntilUnreachable)
Create heartbeat monitor heartbeat monitor.
-
-
-
Method Detail
-
createHeartbeatMonitor
HeartbeatMonitor<O> createHeartbeatMonitor(ResourceID resourceID, HeartbeatTarget<O> heartbeatTarget, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, HeartbeatListener<?,O> heartbeatListener, long heartbeatTimeoutIntervalMs, int failedRpcRequestsUntilUnreachable)
Create heartbeat monitor heartbeat monitor.- Parameters:
resourceID
- the resource idheartbeatTarget
- the heartbeat targetmainThreadExecutor
- the main thread executorheartbeatListener
- the heartbeat listenerheartbeatTimeoutIntervalMs
- the heartbeat timeout interval msfailedRpcRequestsUntilUnreachable
- the number of failed heartbeat RPCs until the target is marked as unreachable- Returns:
- the heartbeat monitor
-
-