case class Immediate(retriesLeft: Int, filter: (Throwable) ⇒ Boolean = always) extends RetryPolicy with Product with Serializable
Retries a max of retriesLeft times immediately following a failure.
- retriesLeft
Number of retries
- filter
A filter to check if the cause of failure should prevent retrying.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Immediate
- Serializable
- Serializable
- Product
- Equals
- RetryPolicy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
Immediate(retriesLeft: Int, filter: (Throwable) ⇒ Boolean = always)
- retriesLeft
Number of retries
- filter
A filter to check if the cause of failure should prevent retrying.
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
canRetry(reason: Throwable): Boolean
Checks if retry should be attempted.
Checks if retry should be attempted.
- reason
Reason for failure leading to this retry. Used for filtering.
- Definition Classes
- Immediate → RetryPolicy
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val filter: (Throwable) ⇒ Boolean
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
- val retriesLeft: Int
-
def
retry[T <: AnyRef](reason: Throwable, effectProvider: (RetryPolicy) ⇒ Effect): Either[Throwable, (RetryPolicy, Effect)]
Retries an effect.
Retries an effect. Returns
Leftis retry is not possible andRight[(RetryPolicy, Effects)]if it is.- reason
Reason for failure leading to this retry. Used for filtering.
- effectProvider
Effect to be retried.
- Definition Classes
- Immediate → RetryPolicy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )