Interface RedissonRedLockFactory

All Superinterfaces:
Function<String,org.redisson.api.RLock>
All Known Implementing Classes:
RedissonRedLockFactoryImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RedissonRedLockFactory extends Function<String,org.redisson.api.RLock>
Since:
0.1.0
Author:
应卓
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.redisson.api.RLock
    apply(String lockName)
     
    org.redisson.api.RLock
    createLock(String lockName)
    创建多联锁

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • createLock

      org.redisson.api.RLock createLock(String lockName)
      创建多联锁
      Parameters:
      lockName - 锁名称
      Returns:
      多联锁实例
    • apply

      default org.redisson.api.RLock apply(String lockName)
      Specified by:
      apply in interface Function<String,org.redisson.api.RLock>