Class

retry

FibonacciRetry

Related Doc: package retry

Permalink

class FibonacciRetry[T] extends BaseRetry[T]

Retry strategy with fibonacci delay.

Linear Supertypes
BaseRetry[T], Retryable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FibonacciRetry
  2. BaseRetry
  3. Retryable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FibonacciRetry(retries: Int, baseDelay: FiniteDuration, ec: ExecutionContext, scheduler: Scheduler)

    Permalink

    retries

    the max retry count.

    baseDelay

    the initial delay for first retry.

    ec

    execution context.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(block: () ⇒ Future[T]): Retryable[T]

    Permalink

    Set an block/operation that will produce a Future[T].

    Set an block/operation that will produce a Future[T].

    returns

    current retryable instance.

    Definition Classes
    BaseRetry
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. var block: () ⇒ Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    BaseRetry
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def nextDelay(delay: FiniteDuration): FiniteDuration

    Permalink

    Calc the next delay based on the previous delay.

    Calc the next delay based on the previous delay.

    delay

    the previous delay.

    returns

    the next delay.

    Definition Classes
    FibonacciRetryBaseRetry
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. var predicate: (T) ⇒ Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    BaseRetry
  19. def retryWhen(predicate: (T) ⇒ Boolean): Future[T]

    Permalink

    Set the retry condition.

    Set the retry condition.

    returns

    the successful Future[T] or the last retried result.

    Definition Classes
    BaseRetryRetryable
  20. def stopWhen(predicate: (T) ⇒ Boolean): Future[T]

    Permalink

    Set the stop condition.

    Set the stop condition.

    returns

    the successful Future[T] or the last retried result.

    Definition Classes
    BaseRetryRetryable
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withExecutionContext(ec: ExecutionContext): Retryable[T]

    Permalink

    Set customized execution context.

    Set customized execution context.

    returns

    current retryable instance.

    Definition Classes
    BaseRetryRetryable
  27. def withScheduler(scheduler: Scheduler): Retryable[T]

    Permalink

    Set customized execution scheduler.

    Set customized execution scheduler.

    returns

    current retryable instance.

    Definition Classes
    BaseRetryRetryable

Inherited from BaseRetry[T]

Inherited from Retryable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped