Class SimpleReactiveRetryPolicy

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SimpleReactiveRetryPolicy​(reactor.core.scheduler.Scheduler scheduler)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract long retryDelay​(java.lang.Throwable error, int attemptNo)  
      java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,​reactor.core.publisher.Flux<java.lang.Throwable>> toRetryFunction()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleReactiveRetryPolicy

        protected SimpleReactiveRetryPolicy​(reactor.core.scheduler.Scheduler scheduler)
    • Method Detail

      • retryDelay

        public abstract long retryDelay​(java.lang.Throwable error,
                                        int attemptNo)
        Parameters:
        error -
        attemptNo -
        Returns:
        -1 if should not be retried, 0 if retry immediately
      • toRetryFunction

        public java.util.function.Function<reactor.core.publisher.Flux<reactor.util.retry.Retry.RetrySignal>,​reactor.core.publisher.Flux<java.lang.Throwable>> toRetryFunction()
        Specified by:
        toRetryFunction in interface ReactiveRetryPolicy