8788899091929394
public T get() { try { latch.await(); return output.get(); } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } }
105106107108109110111112
@Override public T get(long timeout, TimeUnit unit) { try { return latch.await(timeout, unit) ? output.get() : null; } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } }
122123124125126127128129
*/ 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; }
197198199200201202203204205206
} } } catch (NullPointerException e) { throw new RedisException("Connection is closed"); } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } return command; }
110111112113114115116117
131132133134135136137138139
try { if (!latch.await(timeout, unit)) { throw new TimeoutException("Command timed out"); } } catch (InterruptedException e) { throw new RedisCommandInterruptedException(e); } return output.get(); }
148149150151152153154155
147148149150151152153154155156
113114115116117118119120