public class RedisReentrantLock extends Object implements DistributedReentrantLock
public boolean tryLock(long timeout,
TimeUnit unit)
throws InterruptedException
DistributedReentrantLocktryLock 在接口中 DistributedReentrantLocktimeout - 超时时间unit - unitInterruptedException - 抛出异常public void unlock()
DistributedReentrantLockunlock 在接口中 DistributedReentrantLockCopyright © 2018. All rights reserved.