public class RedisLock extends Object implements DistributedLock
public RedisLock(String lockKey)
public RedisLock(String lockKey, int timeoutMilliseconds)
public RedisLock(String lockKey, int expireMilliseconds, int timeoutMilliseconds)
public String getLockKey()
public boolean acquire()
DistributedLockacquire 在接口中 DistributedLockpublic void release()
DistributedLockrelease 在接口中 DistributedLockCopyright © 2019. All rights reserved.