Class RedisLockAndRunExecutor

java.lang.Object
cn.sliew.carp.framework.lock.redis.RedisLockAndRunExecutor
All Implemented Interfaces:
cn.sliew.carp.framework.common.lock.LockAndRunExecutor

public class RedisLockAndRunExecutor extends Object implements cn.sliew.carp.framework.common.lock.LockAndRunExecutor
  • Constructor Details

    • RedisLockAndRunExecutor

      public RedisLockAndRunExecutor()
  • Method Details

    • execute

      public cn.sliew.carp.framework.common.lock.LockRunResult<Void> execute(Runnable action, String keyName)
      Specified by:
      execute in interface cn.sliew.carp.framework.common.lock.LockAndRunExecutor
    • execute

      public <R> cn.sliew.carp.framework.common.lock.LockRunResult<R> execute(Callable<R> action, String keyName)
      Specified by:
      execute in interface cn.sliew.carp.framework.common.lock.LockAndRunExecutor