|
|
|
@ -118,6 +118,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public <V> V get(RFuture<V> future) {
|
|
|
|
|
if (!future.isDone()) {
|
|
|
|
|
final CountDownLatch l = new CountDownLatch(1);
|
|
|
|
|
future.addListener(new FutureListener<V>() {
|
|
|
|
|
@Override
|
|
|
|
@ -138,6 +139,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
|
|
|
|
|
if (interrupted) {
|
|
|
|
|
Thread.currentThread().interrupt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// commented out due to blocking issues up to 200 ms per minute for each thread
|
|
|
|
|
// future.awaitUninterruptibly();
|
|
|
|
|