Defines a distributed lease repository, with the ability to acquire leases with automatic renewal, check for other existing leases and watch for related events.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Returns a resource representing acquisition of the lease and release upon finalization. The resource acquire action is semantically blocking until the lease is acquired. Once acquired, the lease is automatically renewed by a fiber supervised by the resource, according to passed parameters.
Returns a resource representing acquisition of the lease and release upon finalization. The resource acquire action is semantically blocking until the lease is acquired. Once acquired, the lease is automatically renewed by a fiber supervised by the resource, according to passed parameters.
Value parameters
- annotations
-
optional annotations for this lease
- holderID
-
holder ID
- id
-
lease ID
Attributes
- Returns
-
resource representing the held lease
Returns a lease with the corresponding ID, if any
Returns a lease with the corresponding ID, if any
Value parameters
- id
-
lease ID
Attributes
- Returns
-
handle on the lease, allowing to check for expiry
Labels of leases tracked by this repository (labels act as a filter)
Labels of leases tracked by this repository (labels act as a filter)
Attributes
Lists all leases
Lists all leases
Attributes
- Returns
-
list of handles on leases (allowing e.g. to check for expiry)
Returns a stream indicating changes in the repository
Returns a stream indicating changes in the repository
Attributes
- Returns
-
stream of lease events