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 Type
    Method
    Description
    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 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 id
      heartbeatTarget - the heartbeat target
      mainThreadExecutor - the main thread executor
      heartbeatListener - the heartbeat listener
      heartbeatTimeoutIntervalMs - the heartbeat timeout interval ms
      failedRpcRequestsUntilUnreachable - the number of failed heartbeat RPCs until the target is marked as unreachable
      Returns:
      the heartbeat monitor