com.noir.common.lock.properties.DLockProperties 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.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "locker")
public class DLockProperties {
/**
* 是否开启
*/
private boolean enable;
/**
* 锁类型
*
* redis-expire redis过期时间与上锁id标记
* redis-get-set redis getSet 时间戳
* red-lock redisson红锁
* zookeeper zk公平锁
*/
private String type;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy