O
- Type of the outgoing heartbeat payloadpublic static interface HeartbeatMonitor.Factory<O>
HeartbeatMonitor
.Modifier and Type | Method and Description |
---|---|
HeartbeatMonitor<O> |
createHeartbeatMonitor(ResourceID resourceID,
HeartbeatTarget<O> heartbeatTarget,
ScheduledExecutor mainThreadExecutor,
HeartbeatListener<?,O> heartbeatListener,
long heartbeatTimeoutIntervalMs,
int failedRpcRequestsUntilUnreachable)
Create heartbeat monitor heartbeat monitor.
|
HeartbeatMonitor<O> createHeartbeatMonitor(ResourceID resourceID, HeartbeatTarget<O> heartbeatTarget, ScheduledExecutor mainThreadExecutor, HeartbeatListener<?,O> heartbeatListener, long heartbeatTimeoutIntervalMs, int failedRpcRequestsUntilUnreachable)
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 unreachableCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.