Interface IRwDataStructure

All Known Implementing Classes:
RwLinkedListWrapper, RwListWrapper, RwMapWrapper

public interface IRwDataStructure
Interface for thread-safe data structures using a read-write lock.
  • Method Summary

    Modifier and Type
    Method
    Description
    jadex.common.RwAutoLock
    Gets the internal auto lock.
    Gets the internal lock.
    default Lock
    Gets the read lock for manual locking.
    default Lock
    Gets the write lock for manual locking.
    default jadex.common.IAutoLock
    Locks the read lock for resource-based locking.
    default jadex.common.IAutoLock
    Locks the write lock for resource-based locking.
  • Method Details

    • getAutoLock

      jadex.common.RwAutoLock getAutoLock()
      Gets the internal auto lock.
      Returns:
      The lock.
    • readLock

      default jadex.common.IAutoLock readLock()
      Locks the read lock for resource-based locking.
      Returns:
      An IAutoLock object for resource-based locking.
    • writeLock

      default jadex.common.IAutoLock writeLock()
      Locks the write lock for resource-based locking.
      Returns:
      An IAutoLock object for resource-based locking.
    • getReadLock

      default Lock getReadLock()
      Gets the read lock for manual locking.
      Returns:
      The read lock.
    • getWriteLock

      default Lock getWriteLock()
      Gets the write lock for manual locking.
      Returns:
      The write lock.
    • getLock

      default ReadWriteLock getLock()
      Gets the internal lock.
      Returns:
      The lock.