io.github.spitmaster.warlock.enums.Scope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of warlock-spring-boot-starter Show documentation
Show all versions of warlock-spring-boot-starter Show documentation
warlock-spring-boot-starter is an annotation-driven concurrency tools library for java with Spring.
It is easy to use in Spring application
Just using annotation on your method , the concurrency lock problem would be solved
package io.github.spitmaster.warlock.enums;
/**
* 同步工具的范围
*
* @author zhouyijin
*/
public enum Scope {
/**
* 作用范围仅本JVM
* 作用域仅在单JVM实例上
*/
STANDALONE,
/**
* 作用范围是分布式集群
* 默认是基于Redis, 需要Redisson的依赖支持
*/
DISTRIBUTED,
//未来考虑是否支持ZK等其他中间件
;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy