class Etcd::Lease
- Etcd::Lease
- Reference
- Object
Defined in:
etcd/lease.crConstructors
Instance Method Summary
-
#grant(ttl : Int64 = @ttl, id = 0)
Requests a lease ttl ttl of granted lease Int64 id id of 0 prompts etcd to assign any id to lease UInt64
-
#keep_alive(id : Int64) : Int64 | Nil
Requests persistence of lease.
-
#leases
Queries for all existing leases in an etcd cluster
-
#revoke(id : Int64)
Revokes an etcd lease id Id of lease Int64
-
#timetolive(id : Int64, query_keys = false)
Queries the TTL of a lease id id of lease Int64 query_keys query all the lease's keys for ttl Bool
Constructor Detail
Instance Method Detail
Requests a lease ttl ttl of granted lease Int64 id id of 0 prompts etcd to assign any id to lease UInt64
Requests persistence of lease. Must be invoked periodically to avoid key loss.
Queries the TTL of a lease id id of lease Int64 query_keys query all the lease's keys for ttl Bool