class LiveTemporary extends Service
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LiveTemporary
- Service
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LiveTemporary(contextInfo: contextinfo.ContextInfo.Service, lock: LeaderLock, leadershipLost: Queue[Unit])
Value Members
-
def
lease: ZIO[Any, LeaderElectionFailure[Nothing], Unit]
Creates a managed lock implementing the leader election algorithm
Creates a managed lock implementing the leader election algorithm
- Definition Classes
- LiveTemporary → Service
-
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
- LiveTemporary → Service