writer.start();
// Create a thread to send heartbeat messages.
if (heartbeatInterval > 0)
{
heartbeatThread = new HeartbeatThread(
"Replication Heartbeat to " + this +
" in RS " + replicationServerDomain.getReplicationServer().
getMonitorInstanceName(),
session, heartbeatInterval / 3);
heartbeatThread.start();