object Policy
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Policy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait PolicyError[+E] extends AnyRef
- case class PolicyException[E](error: PolicyError[E]) extends Exception with Product with Serializable
- case class WrappedError[E](e: E) extends PolicyError[E] with Product with Serializable
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def common[E](rateLimiter: RateLimiter = noopRateLimiter, bulkhead: Bulkhead = noopBulkhead, circuitBreaker: CircuitBreaker[E] = noopCircuitBreaker, retry: Retry[E] = noopRetry[E]): Policy[E]
Creates a common rezilience policy that wraps calls with a bulkhead, followed by a circuit breaker, followed by a rate limiter, followed by a retry policy.
Creates a common rezilience policy that wraps calls with a bulkhead, followed by a circuit breaker, followed by a rate limiter, followed by a retry policy.
i.e. retry(withRateLimiter(withCircuitBreaker(withBulkhead(effect)))
Each of these wraps are optional by the default values for these three policies being noop versions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flattenWrappedError[E]: (PolicyError[PolicyError[E]]) => PolicyError[E]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noop: Policy[Any]
A policy that does not change the execution of the effect
- val noopBulkhead: Bulkhead
- def noopCircuitBreaker[E]: CircuitBreaker[E]
- val noopRateLimiter: RateLimiter
- def noopRetry[E]: Retry[E]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unwrap[E]: PartialFunction[PolicyError[E], E]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object BulkheadRejection extends PolicyError[Nothing] with Product with Serializable
- case object CallTimedOut extends PolicyError[Nothing] with Product with Serializable
- case object CircuitBreakerOpen extends PolicyError[Nothing] with Product with Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated