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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • 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.