Class RetryStrategies


  • public final class RetryStrategies
    extends java.lang.Object
    Collection of factory methods for creating the most frequently used RetryStrategies.
    Since:
    Jet 4.3
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RetryStrategies.Builder
      Builder for custom retry strategies.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RetryStrategies.Builder custom()
      Create a builder which can be used for setting up an arbitrarily complex strategy.
      static RetryStrategy indefinitely​(long intervalMillis)
      Create a strategy which will retry failed actions indefinitely and will wait for a fixed amount of time between any two subsequent attempts.
      static RetryStrategy never()
      Create a strategy which will not retry a failed action.
      • Methods inherited from class java.lang.Object

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

      • never

        public static RetryStrategy never()
        Create a strategy which will not retry a failed action.
      • indefinitely

        public static RetryStrategy indefinitely​(long intervalMillis)
        Create a strategy which will retry failed actions indefinitely and will wait for a fixed amount of time between any two subsequent attempts.
      • custom

        public static RetryStrategies.Builder custom()
        Create a builder which can be used for setting up an arbitrarily complex strategy.