134135136137138139140141142
try { if (!latch.await(timeout, unit)) { throw new TimeoutException("Command timed out"); } } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } return output.get(); }
151152153154155156157158
*/ public boolean await(long timeout, TimeUnit unit) { try { return latch.await(timeout, unit); } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } }
143144145146147148149150151152
} finally { writeLock.unlock(); } } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } return command; }
106107108109110111112113
public T get() { try { latch.await(); return output.get(); } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } }
127128129130131132133134135
144145146147148149150151
8788899091929394
109110111112113114115116117
127128129130131132133134