Package jadex.commons.collection
Interface IRwMap<K,V>
-
- All Superinterfaces:
java.util.Map<K,V>
- All Known Implementing Classes:
RwMapWrapper
public interface IRwMap<K,V> extends java.util.Map<K,V>
Interface for thread-safe maps using a read-write lock.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.locks.ReadWriteLock
getLock()
Gets the internal lock.java.util.concurrent.locks.Lock
getReadLock()
Gets the read lock for manual locking.java.util.concurrent.locks.Lock
getWriteLock()
Gets the write lock for manual locking.IAutoLock
readLock()
Locks the read lock for resource-based locking.IAutoLock
writeLock()
Locks the write lock for resource-based locking.
-
-
-
Method Detail
-
readLock
IAutoLock readLock()
Locks the read lock for resource-based locking.
-
writeLock
IAutoLock writeLock()
Locks the write lock for resource-based locking.
-
getReadLock
java.util.concurrent.locks.Lock getReadLock()
Gets the read lock for manual locking.
-
getWriteLock
java.util.concurrent.locks.Lock getWriteLock()
Gets the write lock for manual locking.
-
getLock
java.util.concurrent.locks.ReadWriteLock getLock()
Gets the internal lock.- Returns:
- The lock.
-
-