Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 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))
 {
 }