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.
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
(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.
(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.
(release lock)
Perform one release of the mutex.
Perform one release of the mutex.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close