Packages

trait SwitchablePolicy[E] extends Policy[E]

A Policy that can be replaced safely at runtime

Linear Supertypes
Policy[E], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SwitchablePolicy
  2. Policy
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply[R, E1 <: E, A](f: ZIO[R, E1, A]): ZIO[R, PolicyError[E1], A]
    Definition Classes
    Policy
  2. abstract def switch[R0, E0, E2 >: E](newPolicy: ZManaged[R0, E0, Policy[E2]], mode: Mode = Mode.Transition): ZIO[R0, E0, UIO[Unit]]

    Switches the policy to the new policy

    Switches the policy to the new policy

    After completion of this effect, it is guaranteed that new calls are executed with the new policy. Calls in flight before execution of the switch will be completed with the old policy.

    The old policy will be released after those in-flight calls are completed. The inner UIO signals completion of release of the old policy.

    newPolicy

    The new policy to apply. Can be a policy that accepts a supertype of errors of the original policy.

    mode

    Transition mode: Transition = Process new calls with the new policy while completing in-flight calls with the previous policy. FinishInFlight = Wait for completion of in-flight calls with the old policy before accepting

Concrete 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( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def compose[E2 <: E](that: Policy[PolicyError[E2]]): Policy[E2]

    Apply another policy on top of this one

    Apply another policy on top of this one

    The other policy gets applied before this policy, i.e. policyA compose policyB means policyB { policyA { effect } }

    that

    The other policy

    Definition Classes
    Policy
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from Policy[E]

Inherited from AnyRef

Inherited from Any

Ungrouped