class FixedDelayRetry[T] extends BaseRetry[T]
Retry strategy with fixed delay.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FixedDelayRetry
- BaseRetry
- Retryable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
FixedDelayRetry(retries: Int, delay: FiniteDuration, ec: ExecutionContext, scheduler: Scheduler)
- retries
the max retry count.
- delay
the fixed delay between each retry.
- ec
execution context.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(block: () ⇒ Future[T]): Retryable[T]
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
var
block: () ⇒ Future[T]
- Attributes
- protected
- Definition Classes
- BaseRetry
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nextDelay(delay: FiniteDuration): FiniteDuration
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
- FixedDelayRetry → BaseRetry
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
var
predicate: (T) ⇒ Boolean
- Attributes
- protected
- Definition Classes
- BaseRetry
-
def
retryWhen(predicate: (T) ⇒ Boolean): Future[T]
Set the retry condition.
-
def
stopWhen(predicate: (T) ⇒ Boolean): Future[T]
Set the stop condition.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withExecutionContext(ec: ExecutionContext): Retryable[T]
Set customized execution context.
-
def
withScheduler(scheduler: Scheduler): Retryable[T]
Set customized execution scheduler.