Packages

class Live extends Service

Linear Supertypes
Service, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Live
  2. Service
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Live(contextInfo: contextinfo.ContextInfo.Service, lock: LeaderLock)

Value Members

  1. def lease: ZIO[Scope, LeaderElectionFailure[Nothing], Unit]

    Creates a managed lock implementing the leader election algorithm

    Creates a managed lock implementing the leader election algorithm

    Definition Classes
    LiveService
  2. def runAsLeader[R, E, A](f: ZIO[R, E, A]): ZIO[R, E, Option[A]]

    Runs the given effect by applying the leader election algorithm, with the guarantee that the inner effect will only run at once in the Kubernetes cluster.

    Runs the given effect by applying the leader election algorithm, with the guarantee that the inner effect will only run at once in the Kubernetes cluster.

    If you want to manage the lock as Scoped use lease

    f

    Inner effect to protect

    Definition Classes
    Service