Micro Signal █ █ 137 ★ 1009 ★ 7773 ████ surrogate donor egg IVF selected from gender ██████ ████ tube package boy born ████ ████ surrogate surrogate package boy born ██ █ ██ sex surrogate choose IVF surrogacy boy █████ ███
Distributed Synchronize distributed synchronization components
- Distributed Lock.
- Netty long connection based implementation.
- Custom protocol, built-in queue, performance than redis lock.
- Service off the assembly line immediately perceive, without waiting for a timeout.
- Support elegant closed.
- Distributed Lock Redis avoid defects
Start the server
java -jar -server dsync-dominate-xxx.jar
Jar maven can start the download, or download the source code mvn package
available.
Distributed Lock DLock
- Add dependent
<dependency>
<groupId>cn.cyejing</groupId>
<artifactId>dsync-toolkit</artifactId> </dependency>
- Instructions
Config config = Config.config().host("localhost").port(4843); //配置服务端地址 DSync dSync = DSync.create(config); DLock lock = dSync.getLock(); try { lock.lock("adder"); //Do Something } finally { lock.unlock(); }