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); }
public static Props Props(ConnectionCheckerSettings config) => Actor.Props.Create(() => new ConnectionChecker(config));