
kim.sesame.framework.lock.service.DistributedLocker Maven / Gradle / Ivy
The newest version!
package kim.sesame.framework.lock.service;
import java.util.concurrent.TimeUnit;
/**
* 分布式锁的接口
*
* @author johnny
* date : 2017/12/11 16:46
*/
public interface DistributedLocker {
void lock(String lockKey);
void unlock(String lockKey);
void lock(String lockKey, int timeout);
void lock(String lockKey, TimeUnit unit, int timeout);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy