Class CallbackMutex
java.lang.Object
org.apache.bookkeeper.mledger.util.CallbackMutex
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 -
Method Summary
-
Constructor Details
-
CallbackMutex
public CallbackMutex()
-
-
Method Details
-
lock
public void lock() -
tryLock
public boolean tryLock() -
unlock
public void unlock()
-