public BackoffOptionsImpl(IBackoffType backoffType, Props childProps, string childName, TimeSpan minBackoff, TimeSpan maxBackoff, double randomFactor, IBackoffReset reset, OneForOneStrategy strategy) { _backoffType = backoffType ?? RestartImpliesFailure.Instance; _childProps = childProps; _childName = childName; _minBackoff = minBackoff; _maxBackoff = maxBackoff; _randomFactor = randomFactor; _reset = reset ?? new AutoReset(_minBackoff); _strategy = strategy; }
public BackoffOptionsImpl(IBackoffType backoffType, Props childProps, string childName, TimeSpan minBackoff, TimeSpan maxBackoff, double randomFactor, IBackoffReset reset, OneForOneStrategy strategy, object replyWhileStopped = null, Func <object, bool> finalStopMessage = null) { _backoffType = backoffType ?? RestartImpliesFailure.Instance; _childProps = childProps; _childName = childName; _minBackoff = minBackoff; _maxBackoff = maxBackoff; _randomFactor = randomFactor; _reset = reset ?? new AutoReset(_minBackoff); _strategy = strategy; _replyWhileStopped = replyWhileStopped; _finalStopMessage = finalStopMessage; }
public BackoffOptionsImpl(IBackoffType backoffType, Props childProps, string childName, TimeSpan minBackoff, TimeSpan maxBackoff, double randomFactor, IBackoffReset reset = null) : this(backoffType, childProps, childName, minBackoff, maxBackoff, randomFactor, reset, new OneForOneStrategy(SupervisorStrategy.DefaultDecider)) { }