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 Details

    • RedissonRedLockFactoryImpl

      public RedissonRedLockFactoryImpl(RedLockProperties properties)
      构造方法
      Parameters:
      properties - 配置项
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setServerConfigCustomizer

      public void setServerConfigCustomizer(@Nullable ServerConfigCustomizer serverConfigCustomizer)
    • createLock

      public org.redisson.api.RLock createLock(String lockName)
      创建多联锁
      Specified by:
      createLock in interface RedissonRedLockFactory
      Parameters:
      lockName - 锁名称
      Returns:
      多联锁实例