接口的使用
com.aizuda.easy.retry.server.job.task.support.LockExecutor
使用LockExecutor的程序包
-
com.aizuda.easy.retry.server.job.task.support.handler中LockExecutor的使用
修饰符和类型方法说明voidDistributedLockHandler.lockWithDisposable(LockExecutor lockExecutor, String lockName, Duration lockAtMost) 获取分布式锁voidDistributedLockHandler.lockWithDisposableAndRetry(LockExecutor lockExecutor, String lockName, Duration lockAtMost, Duration sleepTime, Integer maxRetryTimes) 获取分布式锁并支持重试