类 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.
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
CallbackMutex
public CallbackMutex()
-
-
方法详细资料
-
lock
public void lock() -
tryLock
public boolean tryLock() -
unlock
public void unlock()
-