Packages

object Policy

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Policy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait PolicyError[+E] extends AnyRef
  2. case class PolicyException[E](error: PolicyError[E]) extends Exception with Product with Serializable
  3. case class WrappedError[E](e: E) extends PolicyError[E] with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. 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

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def flattenWrappedError[E]: (PolicyError[PolicyError[E]]) => PolicyError[E]
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. val noop: Policy[Any]

    A policy that does not change the execution of the effect

  15. val noopBulkhead: Bulkhead
  16. def noopCircuitBreaker[E]: CircuitBreaker[E]
  17. val noopRateLimiter: RateLimiter
  18. def noopRetry[E]: Retry[E]
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def unwrap[E]: PartialFunction[PolicyError[E], E]
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. case object BulkheadRejection extends PolicyError[Nothing] with Product with Serializable
  28. case object CallTimedOut extends PolicyError[Nothing] with Product with Serializable
  29. case object CircuitBreakerOpen extends PolicyError[Nothing] with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped