public ClusterHeartbeatSender()
{
_cluster = Cluster.Get(Context.System);
_selfHeartbeat = new Heartbeat(_cluster.SelfAddress);
_state = new ClusterHeartbeatSenderState(
new HeartbeatNodeRing(_cluster.SelfUniqueAddress, new[] { _cluster.SelfUniqueAddress },
_cluster.Settings.MonitoredByNrOfMembers),
ImmutableHashSet.Create<UniqueAddress>(),
FailureDetector);
//start periodic heartbeat to other nodes in cluster
_heartbeatTask =
Context.System.Scheduler.ScheduleTellRepeatedlyCancelable(
_cluster.Settings.PeriodicTasksInitialDelay.Max(_cluster.Settings.HeartbeatInterval),
_cluster.Settings.HeartbeatInterval, Self, new HeartbeatTick(), Self);
Initializing();
}