Class Mutex.Manager.ForMap<O,K,V>
java.lang.Object
org.burningwave.core.extension.concurrent.Mutex.Manager
org.burningwave.core.extension.concurrent.Mutex.Manager.ForMap<O,K,V>
- All Implemented Interfaces:
AutoCloseable,org.burningwave.core.Component,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.ManagedLogger
- Enclosing class:
- Mutex.Manager
public static class Mutex.Manager.ForMap<O,K,V> extends Mutex.Manager
-
Nested Class Summary
Nested classes/interfaces inherited from class org.burningwave.core.extension.concurrent.Mutex.Manager
Mutex.Manager.ForMap<O,K,V> -
Method Summary
Modifier and Type Method Description Mutex<K,V>addMutexFor(O operation, K key, Predicate<V> predicate)voidclearMutexes()voidclose()static <O, K, V> Mutex.Manager.ForMap<O,K,V>create(Function<K,V> valueRetriever)Set<Mutex<K,V>>getMutexes(O operation)voidunlockMutexes(O operation, K key, V value)VwaitFor(O operation, K key, Predicate<V> predicate, int... timeout)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Component
getOrCreateTemporaryFolder, getTemporaryFolderPrefix
-
Method Details
-
create
-
waitFor
public V waitFor(O operation, K key, Predicate<V> predicate, int... timeout) throws InterruptedException- Throws:
InterruptedException
-
addMutexFor
-
getMutexes
-
unlockMutexes
-
clearMutexes
public void clearMutexes() -
close
public void close()
-