Liking cljdoc? Tell your friends :D

curator.shared-lock

Implements shared locks.

Fully distributed locks that are globally synchronous, meaning at any snapshot in time no two clients think they hold the same lock.

Note: unlike InterProcessMutex this lock is not reentrant.

https://curator.apache.org/curator-recipes/shared-lock.html

Implements shared locks.

Fully distributed locks that are globally synchronous, meaning at any snapshot
in time no two clients think they hold the same lock.

Note: unlike InterProcessMutex this lock is not reentrant.

https://curator.apache.org/curator-recipes/shared-lock.html
raw docstring

acquireclj

(acquire lock)

Acquire the mutex - blocking until it's available.

Each call to acquire must be balanced by a call to release.

Acquire the mutex - blocking until it's available.

Each call to acquire must be balanced by a call to release.
sourceraw docstring

acquire-with-timeoutclj

(acquire-with-timeout lock time unit)

Acquire the mutex - blocks until it's available or the given time expires.

Return false if the lock could not be acquired in the given time.

Must be balanced by a call to release.

Acquire the mutex - blocks until it's available or the given time expires.

Return false if the lock could not be acquired in the given time.

Must be balanced by a call to release.
sourceraw docstring

releaseclj

(release lock)

Perform one release of the mutex.

Perform one release of the mutex.
sourceraw docstring

shared-lockclj

(shared-lock curator-framework path)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close