I
- Type of the incoming heartbeat payloadO
- Type of the outgoing heartbeat payloadpublic class HeartbeatManagerSenderImpl<I,O> extends HeartbeatManagerImpl<I,O> implements Runnable
HeartbeatManager
implementation which regularly requests a heartbeat response from
its monitored HeartbeatTarget
. The heartbeat period is configurable.log, stopped
Constructor and Description |
---|
HeartbeatManagerSenderImpl(long heartbeatPeriod,
long heartbeatTimeout,
ResourceID ownResourceID,
HeartbeatListener<I,O> heartbeatListener,
Executor executor,
ScheduledExecutor scheduledExecutor,
org.slf4j.Logger log) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
stop()
Stops the heartbeat manager.
|
getLastHeartbeatFrom, monitorTarget, receiveHeartbeat, requestHeartbeat, unmonitorTarget
public HeartbeatManagerSenderImpl(long heartbeatPeriod, long heartbeatTimeout, ResourceID ownResourceID, HeartbeatListener<I,O> heartbeatListener, Executor executor, ScheduledExecutor scheduledExecutor, org.slf4j.Logger log)
public void stop()
HeartbeatManager
stop
in interface HeartbeatManager<I,O>
stop
in class HeartbeatManagerImpl<I,O>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.