Packages

package leader

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

Type Members

  1. final case class ApplicationError[E](error: E) extends LeaderElectionFailure[E] with Product with Serializable

    Inner effect failed

  2. final case class ContextInfoError(error: ContextInfoFailure) extends LeaderElectionFailure[Nothing] with Product with Serializable

    Failure while gathering information about the running service

  3. final case class KubernetesError(error: K8sFailure) extends LeaderElectionFailure[Nothing] with Product with Serializable

    Failure while calling the Kubernetes API

  4. type LeaderElection = Service
  5. sealed trait LeaderElectionFailure[+E] extends AnyRef

    Possible failures of the leader election algorithm

    Possible failures of the leader election algorithm

    E

    Failure type of the inner effect

  6. trait LeaderLock extends AnyRef

    Common interface for different lock implementations used for leader election.

Value Members

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

    Creates a managed lock implementing the leader election algorithm

  2. def runAsLeader[R, E, A](f: ZIO[R, E, A]): ZIO[R with LeaderElection, 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

  3. object LeaderElection

Inherited from AnyRef

Inherited from Any

Ungrouped