Class HeartbeatPublisher
- java.lang.Object
-
- org.opends.server.replication.server.HeartbeatPublisher
-
- All Implemented Interfaces:
Runnable
public final class HeartbeatPublisher extends Object implements Runnable
Publishes aHeartbeatMsg
on a given protocol session if no message has been published since the last heartbeat interval period.These heartbeat messages are sent to a peer replica or to a peer RS.
-
-
Constructor Summary
Constructors Constructor Description HeartbeatPublisher(String name, Session session, long heartbeatInterval)
Create a heartbeat publisher.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
static void
setHeartbeatsDisabled(boolean heartbeatsDisabled)
For testing purposes only to simulate loss of heartbeats.
-
-
-
Constructor Detail
-
HeartbeatPublisher
public HeartbeatPublisher(String name, Session session, long heartbeatInterval)
Create a heartbeat publisher.- Parameters:
name
- The name of the heartbeat.session
- The session on which heartbeats are to be sent.heartbeatInterval
- The desired interval between heartbeats in milliseconds.
-
-