trait OptRetryConfigBuilder[MDT <: OptRetryConfigBuilder[MDT]] extends AnyRef
A trait for an immutable builder of OptRetryConfig. Callers may set the optional retryDecider by calling the retryDecider method. If the retryDecider method is never called then the optional retry function is left unset.
- MDT
most derived type
- Alphabetic
- By Inheritance
- OptRetryConfigBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
build(): OptRetryConfig
- returns
a RetryConfig with the optional retry function
-
abstract
def
retryDecider(decider: RetryDecider)(implicit ec: ExecutionContext): MDT
Set the optional retry decider
Set the optional retry decider
- decider
a retry decider that is used to determine whether to continue after failure
- returns
a copy of the builder with the new setting
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
retry(f: (List[Throwable]) ⇒ Future[Boolean])(implicit ec: ExecutionContext): MDT
Set the optional retry function
Set the optional retry function
- f
a function that accepts a list of failures so far for an operation. The function returns TRUE if the operation should be retried.
- returns
a copy of the builder with the new setting
-
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
- @throws( ... )