Class Mutex


  • public class Mutex
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Mutex​(boolean initiallyPermitted)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void await()  
      void awaitOrTimeout​(long timeout, java.util.concurrent.TimeUnit unit)  
      void release()  
      • Methods inherited from class java.lang.Object

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

      • Mutex

        public Mutex​(boolean initiallyPermitted)
    • Method Detail

      • await

        public void await()
                   throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • awaitOrTimeout

        public void awaitOrTimeout​(long timeout,
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • release

        public void release()