Class CallbackMutex


  • public class CallbackMutex
    extends java.lang.Object
    Mutex object that can be acquired from a thread and released from a different thread.

    This is meant to be acquired when calling an asynchronous method and released in its callback which is probably executed in a different thread.

    • Constructor Summary

      Constructors 
      Constructor Description
      CallbackMutex()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void lock()  
      boolean tryLock()  
      void unlock()  
      • Methods inherited from class java.lang.Object

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

      • CallbackMutex

        public CallbackMutex()
    • Method Detail

      • lock

        public void lock()
      • tryLock

        public boolean tryLock()
      • unlock

        public void unlock()