@Override public synchronized void onComplete() { if (finished) { return; } finished = true; future.complete(getFinalResult()); } }
@Override public synchronized void onError(Throwable error) { completeExceptionally(error); }
@Override public synchronized void onRegionError(RegionInfo region, Throwable error) { completeExceptionally(error); }
@Override public synchronized void onError(Throwable error) { completeExceptionally(error); }
@Override public synchronized void onRegionError(RegionInfo region, Throwable error) { completeExceptionally(error); }
@Override public synchronized void onComplete() { if (finished) { return; } finished = true; future.complete(getFinalResult()); } }
@Override public synchronized void onComplete() { if (finished) { return; } finished = true; future.complete(getFinalResult()); } }
@Override public synchronized void onRegionComplete(RegionInfo region, AggregateResponse resp) { try { aggregate(region, resp); } catch (IOException e) { completeExceptionally(e); } }
@Override public synchronized void onRegionComplete(RegionInfo region, AggregateResponse resp) { try { aggregate(region, resp); } catch (IOException e) { completeExceptionally(e); } }
@Override public synchronized void onRegionError(RegionInfo region, Throwable error) { completeExceptionally(error); }
@Override public synchronized void onError(Throwable error) { completeExceptionally(error); }
@Override public synchronized void onRegionComplete(RegionInfo region, AggregateResponse resp) { try { aggregate(region, resp); } catch (IOException e) { completeExceptionally(e); } }