com.github.blackshadowwalker.spring.distributelock.Lock Maven / Gradle / Ivy
package com.github.blackshadowwalker.spring.distributelock;
/**
* Created by ASUS on 2016/8/16.
* Pessimistic Locking
* 悲观锁,依赖于分布式
*/
public interface Lock {
String getName();
String getKey();
long getTimeout();
long getKeyExpire();
String getLockName();
boolean lock() throws LockException;
void unlock();
boolean autoUnlock();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy