The etcd3gw.lock Module

The etcd3gw.lock Module

class etcd3gw.lock.Lock(name, ttl=30, client=None)[source]

Bases: object

acquire()[source]

Acquire the lock.

is_acquired()[source]

Check if the lock is acquired

refresh()[source]

Refresh the lease on the lock

Returns

release()[source]

Release the lock

property uuid

The unique id of the lock

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.