ResultPolicy

ox.retry.ResultPolicy
See theResultPolicy companion class
object ResultPolicy

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def default[E, T]: ResultPolicy[E, T]

A policy that considers every non-erroneous result successful and retries on any error.

A policy that considers every non-erroneous result successful and retries on any error.

Attributes

def neverRetry[E, T]: ResultPolicy[E, T]

A policy that considers every non-erroneous result successful and never retries any error, i.e. fails fast

A policy that considers every non-erroneous result successful and never retries any error, i.e. fails fast

Attributes

def retryWhen[E, T](isWorthRetrying: E => Boolean): ResultPolicy[E, T]

A policy that customizes which errors are retried, and considers every non-erroneous result successful

A policy that customizes which errors are retried, and considers every non-erroneous result successful

Value parameters

isWorthRetrying

A predicate that indicates whether an erroneous result should be retried..

Attributes

def successfulWhen[E, T](isSuccess: T => Boolean): ResultPolicy[E, T]

A policy that customizes when a non-erroneous result is considered successful, and retries all errors

A policy that customizes when a non-erroneous result is considered successful, and retries all errors

Value parameters

isSuccess

A predicate that indicates whether a non-erroneous result is considered successful.

Attributes