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 create
HeartbeatMonitor.-
Method Summary
Modifier and TypeMethodDescriptioncreateHeartbeatMonitor(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 Details
-
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
-