Ejemplo n.º 1
0
        public ConnectionChecker(ConnectionCheckerSettings config)
        {
            _config = config;
            _log    = Context.GetLogger();

            _maxRetries    = config.MaxRetries;
            _checkInterval = config.CheckInterval;
            _factor        = config.Factor;
        }
 public ConnectionCheckerSpec()
 {
     _retryInterval = TimeSpan.FromMilliseconds(500);
     _config        = new ConnectionCheckerSettings(true, 3, _retryInterval, 2d);
 }
Ejemplo n.º 3
0
 public static Props Props(ConnectionCheckerSettings config) =>
 Actor.Props.Create(() => new ConnectionChecker(config));