xZkLock组件是利用Zookeeper的强一致特性,提供的分布式锁功能,解决了多JVM中对共享资源加锁解锁的需求。本组件支持对共享资源的互斥锁的加锁解锁、线程内锁重入、批量加解锁等功能。支持对Zookeeper的单机和集群方式连接。
xhrjdzw / xzklock Goto Github PK
View Code? Open in Web Editor NEWxZkLock组件是利用Zookeeper的强一致特性,提供的分布式锁功能,解决了多JVM中对共享资源加锁解锁的需求。本组件支持对共享资源的互斥锁的加锁解锁、线程内锁重入、批量加解锁等功能。支持对Zookeeper的单机和集群方式连接。