ZRetryOptions

zio.temporal.ZRetryOptions
See theZRetryOptions companion object
case class ZRetryOptions

Represents temporal retry options

Attributes

See also:

RetryOptions

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def toJava: RetryOptions
def transformJavaOptions(f: Builder => Builder): ZRetryOptions

Allows to specify options directly on the java SDK's RetryOptions. Use it in case an appropriate withXXX method is missing

Allows to specify options directly on the java SDK's RetryOptions. Use it in case an appropriate withXXX method is missing

Attributes

Note:

the options specified via this method take precedence over those specified via other methods.

def withBackoffCoefficient(backoffCoefficient: Double): ZRetryOptions

Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by this coefficient. Must be 1 or larger. Default is 2.0.

Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by this coefficient. Must be 1 or larger. Default is 2.0.

Attributes

def withDoNotRetry(types: String*): ZRetryOptions

List of application failures types to not retry.

List of application failures types to not retry.

Attributes

See also:

RetryOptions.Builder#setDoNotRetry

def withInitialInterval(interval: Duration): ZRetryOptions

Interval of the first retry. If coefficient is 1.0 then it is used for all retries. Required.

Interval of the first retry. If coefficient is 1.0 then it is used for all retries. Required.

Attributes

When exceeded the amount of attempts, stop. Even if expiration time is not reached. Default is unlimited.

When exceeded the amount of attempts, stop. Even if expiration time is not reached. Default is unlimited.

Attributes

def withMaximumInterval(maximumInterval: Duration): ZRetryOptions

Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of initial interval. Can't be less than initialInterval

Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of initial interval. Can't be less than initialInterval

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product