|
|
|
@ -96,7 +96,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V takeLastAndOfferFirstTo(String queueName) throws InterruptedException {
|
|
|
|
|
return get(takeLastAndOfferFirstToAsync(queueName));
|
|
|
|
|
return commandExecutor.getInterrupted(takeLastAndOfferFirstToAsync(queueName));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RFuture<V> takeLastAndOfferFirstToAsync(String queueName) {
|
|
|
|
@ -175,7 +175,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V takeFirst() throws InterruptedException {
|
|
|
|
|
return get(takeFirstAsync());
|
|
|
|
|
return commandExecutor.getInterrupted(takeFirstAsync());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -192,7 +192,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V takeLast() throws InterruptedException {
|
|
|
|
|
return get(takeLastAsync());
|
|
|
|
|
return commandExecutor.getInterrupted(takeLastAsync());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -202,7 +202,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames) throws InterruptedException {
|
|
|
|
|
return get(pollFirstFromAnyAsync(timeout, unit, queueNames));
|
|
|
|
|
return commandExecutor.getInterrupted(pollFirstFromAnyAsync(timeout, unit, queueNames));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -212,7 +212,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V pollLastFromAny(long timeout, TimeUnit unit, String... queueNames) throws InterruptedException {
|
|
|
|
|
return get(pollLastFromAnyAsync(timeout, unit, queueNames));
|
|
|
|
|
return commandExecutor.getInterrupted(pollLastFromAnyAsync(timeout, unit, queueNames));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -222,7 +222,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
|
|
|
|
|
return get(pollFirstAsync(timeout, unit));
|
|
|
|
|
return commandExecutor.getInterrupted(pollFirstAsync(timeout, unit));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -234,7 +234,7 @@ public class RedissonPriorityBlockingDeque<V> extends RedissonPriorityDeque<V> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public V pollLast(long timeout, TimeUnit unit) throws InterruptedException {
|
|
|
|
|
return get(pollLastAsync(timeout, unit));
|
|
|
|
|
return commandExecutor.getInterrupted(pollLastAsync(timeout, unit));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|