Class CallbackMutex
- java.lang.Object
-
- org.apache.bookkeeper.mledger.util.CallbackMutex
-
public class CallbackMutex extends java.lang.ObjectMutex 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 voidlock()booleantryLock()voidunlock()
-