Class DummyLock

  • All Implemented Interfaces:
    java.util.concurrent.locks.Lock

    public class DummyLock
    extends java.lang.Object
    implements java.util.concurrent.locks.Lock
    Deprecated.
    Deprecated in 5.4 with no replacement.
    Acts like a Lock but all operations are no-ops.
    • Constructor Summary

      Constructors 
      Constructor Description
      DummyLock()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void lock()
      Deprecated.
       
      void lockInterruptibly()
      Deprecated.
       
      java.util.concurrent.locks.Condition newCondition()
      Deprecated.
      Returns null.
      boolean tryLock()
      Deprecated.
       
      boolean tryLock​(long time, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      void unlock()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • lock

        public void lock()
        Deprecated.
        Specified by:
        lock in interface java.util.concurrent.locks.Lock
      • lockInterruptibly

        public void lockInterruptibly()
                               throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        lockInterruptibly in interface java.util.concurrent.locks.Lock
        Throws:
        java.lang.InterruptedException
      • newCondition

        public java.util.concurrent.locks.Condition newCondition()
        Deprecated.
        Returns null.
        Specified by:
        newCondition in interface java.util.concurrent.locks.Lock
      • tryLock

        public boolean tryLock()
        Deprecated.
        Specified by:
        tryLock in interface java.util.concurrent.locks.Lock
        Returns:
        true
      • tryLock

        public boolean tryLock​(long time,
                               java.util.concurrent.TimeUnit unit)
                        throws java.lang.InterruptedException
        Deprecated.
        Specified by:
        tryLock in interface java.util.concurrent.locks.Lock
        Returns:
        true
        Throws:
        java.lang.InterruptedException
      • unlock

        public void unlock()
        Deprecated.
        Specified by:
        unlock in interface java.util.concurrent.locks.Lock