Class RetryStrategy

  • All Implemented Interfaces:
    java.io.Serializable

    @Internal
    public class RetryStrategy
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryStrategy​(int initialRetryDelay, int maxRetryDelay)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T retry​(cz.o2.proxima.functional.Factory<T> what)  
      void retry​(java.lang.Runnable what)  
      RetryStrategy withRetryableException​(java.lang.Class<? extends java.lang.Exception> ex)  
      • Methods inherited from class java.lang.Object

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

      • initialRetryDelay

        private final int initialRetryDelay
      • maxRetryDelay

        private final int maxRetryDelay
      • retryableException

        private final java.util.Set<java.lang.Class<? extends java.lang.Exception>> retryableException
    • Constructor Detail

      • RetryStrategy

        public RetryStrategy​(int initialRetryDelay,
                             int maxRetryDelay)
    • Method Detail

      • withRetryableException

        public RetryStrategy withRetryableException​(java.lang.Class<? extends java.lang.Exception> ex)
      • retry

        public void retry​(java.lang.Runnable what)
      • retry

        public <T> T retry​(cz.o2.proxima.functional.Factory<T> what)