package http
- Alphabetic
- Public
- Protected
Type Members
- trait HttpOperationPolicies extends AnyRef
Service to get a HttpOperationPolicy for a given host
- final case class HttpOperationPolicy(maxParallelRequestCount: Int, hostOverride: Option[String], retryPolicies: List[HttpRetryPolicy], circuitBreakerPolicy: Option[RetryPolicy], timeout: zio.Duration) extends Product with Serializable
Specifies the behavior for calling operations on a given host
Specifies the behavior for calling operations on a given host
- maxParallelRequestCount
The maximum number of parallel requests to this host
- hostOverride
Overrides the host with a custom one
- retryPolicies
Retry policies for different failure conditions
- circuitBreakerPolicy
Circuit breaker reset policy. If none, no circuit breaker will be used
- timeout
Timeout for the requests
- sealed trait HttpRetryCondition extends AnyRef
HTTP operation failure conditions
- final case class HttpRetryPolicy(condition: HttpRetryCondition, policy: RetryPolicy, breakCircuit: Boolean) extends Product with Serializable
Specifies a retry policy for a given HTTP operation failure
Specifies a retry policy for a given HTTP operation failure
- condition
The condition the failure must match
- policy
Retry policy for these failures
- breakCircuit
If true, these failures will be reported to the circuit breaker
- sealed trait Repetition extends AnyRef
Specifies how to retry an operation
- sealed trait RetryLimit extends AnyRef
Specifies what's the limit of the retry policy
- final case class RetryPolicy(failAfter: RetryLimit, repeatWith: Repetition, jitter: Boolean) extends Product with Serializable
Retry policy for an operation
Retry policy for an operation
- failAfter
When to stop trying
- repeatWith
What to do before retrying
- jitter
Enables jittering the time delays between retries
Value Members
- object HttpOperationPolicies
- object HttpOperationPolicy extends Serializable
- object HttpRetryCondition
- object HttpRetryPolicy extends Serializable
- object Repetition
- object RetryLimit
- object RetryPolicy extends Serializable