RetryPolicy

com.softinio.verdict4s.algebra.RetryPolicy
See theRetryPolicy companion class
object RetryPolicy

The default policy, a policy that never retries, and a validated constructor for your own.

Attributes

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

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(maxRetries: Int = ..., backoffInitial: FiniteDuration = ..., backoffMax: FiniteDuration = ..., jitter: Double = ..., retryableStatuses: SortedSet[Int] = ..., respectRetryAfter: Boolean = ..., totalTimeout: FiniteDuration = ...): ValidatedNec[Validation, RetryPolicy]

Build a policy, reporting every bad field at once.

Build a policy, reporting every bad field at once.

Attributes

def retryAfterDelay(nowEpochSecond: Long, targetEpochSecond: Long): FiniteDuration

Turn a Retry-After given as an HTTP date into a delay.

Turn a Retry-After given as an HTTP date into a delay.

Clamped at zero, because clock skew between client and server can otherwise produce a negative wait.

Attributes

Concrete fields

The settings the official SDKs use.

The settings the official SDKs use.

Attributes

Do not retry at all.

Do not retry at all.

Attributes