1.可重入公平锁InterProcessMutex
属性 |
LockInternals: internals 真正获取锁的类 |
LockInternal{ CuratorFramework: client String: path String: basePath LockInternalsDriver: driver String: lockName AtomicReference<RevocationSpec>: revocable CuratorWatcher: revocableWatcher 【curator接口和watcher一样,监听节点变化事件】 Watcher: watcher 【监听watchEvent,唤醒监听节点,内部定义了一些zookeeper状态】 } |
RevocationSpec{ Runnable: runnable Excecutor: excecutor } |
|
String: basePath |