Props() public static method

Factory method for Akka.Remote.RemoteWatcher
public static Props ( IFailureDetectorRegistry
failureDetector, System.TimeSpan heartbeatInterval, System.TimeSpan unreachableReaperInterval, System.TimeSpan heartbeatExpectedResponseAfter ) : Props
failureDetector IFailureDetectorRegistry
heartbeatInterval System.TimeSpan
unreachableReaperInterval System.TimeSpan
heartbeatExpectedResponseAfter System.TimeSpan
return Props
Esempio n. 1
0
        protected override ActorRef CreateRemoteWatcher(ActorSystem system)
        {
            // make sure Cluster extension is initialized/loaded from init thread
            Cluster.Get(system);

            var failureDetector = CreateRemoteWatcherFailureDetector(system);

            return(system.ActorOf(ClusterRemoteWatcher.Props(
                                      failureDetector,
                                      RemoteSettings.WatchHeartBeatInterval,
                                      RemoteSettings.WatchUnreachableReaperInterval,
                                      RemoteSettings.WatchHeartbeatExpectedResponseAfter), "remote-watcher"));
        }