Class RedissonRedLockFactoryImpl
java.lang.Object
com.github.yingzhuo.springboot.redlock.RedissonRedLockFactoryImpl
- All Implemented Interfaces:
RedissonRedLockFactory,Function<String,,org.redisson.api.RLock> org.springframework.beans.factory.InitializingBean
public class RedissonRedLockFactoryImpl
extends Object
implements RedissonRedLockFactory, org.springframework.beans.factory.InitializingBean
- Since:
- 0.1.0
- Author:
- 应卓
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.redisson.api.RLockcreateLock(String lockName) 创建多联锁voidsetServerConfigCustomizer(ServerConfigCustomizer serverConfigCustomizer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.yingzhuo.springboot.redlock.RedissonRedLockFactory
apply
-
Constructor Details
-
RedissonRedLockFactoryImpl
构造方法- Parameters:
properties- 配置项
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setServerConfigCustomizer
-
createLock
创建多联锁- Specified by:
createLockin interfaceRedissonRedLockFactory- Parameters:
lockName- 锁名称- Returns:
- 多联锁实例
-