com.noir.common.lock.DLockFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-distributed-lock-starter Show documentation
Show all versions of spring-boot-distributed-lock-starter Show documentation
A distributed lock springboot supports
package com.noir.common.lock;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
public interface DLockFactory {
/**
* 获取锁
*
* @param name
* @return
*/
public Lock getLock(String name);
/**
* 获取锁
*
* @param name
* @param expire
* @param unit
* @return
*/
public Lock getLock(String name, long expire, TimeUnit unit);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy