public interface DistributedReentrantLock
boolean tryLock(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - 超时时间unit - unitInterruptedException - 抛出异常void unlock()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.