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.Cleanable,org.burningwave.core.Closeable,org.burningwave.core.Component,org.burningwave.core.Identifiable,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.Memorizer
- 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.Cleanable
clear, clearInBackgroundMethods inherited from interface org.burningwave.core.Closeable
closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationIdMethods inherited from interface org.burningwave.core.Memorizer
getOrCreateTemporaryFolder, getOrCreateTemporaryFolder, getTemporaryFolderPrefixMethods inherited from interface org.burningwave.core.iterable.Properties.Listener
checkAndListenTo, checkAndUnregister, listenTo, processChangeNotification, unregister
-
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()
-