Class RWLock

All Implemented Interfaces:
Serializable, ReadWriteLock

public class RWLock extends ReentrantReadWriteLock
Author:
Eike Stepper
See Also:
  • Constructor Details

    • RWLock

      public RWLock(long timeoutMillis)
    • RWLock

      public RWLock(long timeoutMillis, boolean fair)
  • Method Details

    • read

      public <V> V read(Callable<V> callable)
    • read

      public void read(Runnable runnable)
    • write

      public <V> V write(Callable<V> callable)
    • write

      public void write(Runnable runnable)
    • call

      public static <V> V call(Callable<V> callable, Lock lock, long timeoutMillis)
    • run

      public static void run(Runnable runnable, Lock lock, long timeoutMillis)