Class SerReentrantReadWriteLock

java.lang.Object
com.pnfsoftware.jeb.util.serialization.objects.SerReentrantReadWriteLock
All Implemented Interfaces:
ReadWriteLock

@Ser public class SerReentrantReadWriteLock extends Object implements ReadWriteLock
Wrapper for a Java ReentrantReadWriteLock that supports serialization.
  • Constructor Details

    • SerReentrantReadWriteLock

      public SerReentrantReadWriteLock()
    • SerReentrantReadWriteLock

      public SerReentrantReadWriteLock(boolean fair)
  • Method Details

    • get

      public ReentrantReadWriteLock get()
    • writeLock

      Specified by:
      writeLock in interface ReadWriteLock
    • readLock

      Specified by:
      readLock in interface ReadWriteLock
    • isFair

      public final boolean isFair()
    • getReadLockCount

      public int getReadLockCount()
    • isWriteLocked

      public boolean isWriteLocked()
    • isWriteLockedByCurrentThread

      public boolean isWriteLockedByCurrentThread()
    • getWriteHoldCount

      public int getWriteHoldCount()
    • getReadHoldCount

      public int getReadHoldCount()
    • hasQueuedThreads

      public final boolean hasQueuedThreads()
    • hasQueuedThread

      public final boolean hasQueuedThread(Thread thread)
    • getQueueLength

      public final int getQueueLength()
    • hasWaiters

      public boolean hasWaiters(Condition condition)
    • getWaitQueueLength

      public int getWaitQueueLength(Condition condition)