public void get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException {
        sync.innerGet(unit.toNanos(timeout));
    }
public void get ( long timeout , TimeUnit unit ) throws InterruptedException , TimeoutException { sync . innerGet ( unit . toNanos ( timeout ) ) ; }
阻塞等待Boolean为true,允许设置超时时间

@param timeout
@param unit
@throws InterruptedException
@throws TimeoutException