/** * Overwritten to change result, if necessary. */ @Override protected synchronized boolean doSetFinished(boolean undone) { try { func.handleFinished(getIntermediateResults()); return DelegatingPullSubscriptionIntermediateDelegationFuture.super.doSetFinished(func.isUndone(undone)); } catch(Exception e) { return doSetException(e, func.isUndone(undone)); } }
/** * Overwritten to change result or undone, if necessary. */ @Override protected boolean doSetResult(Collection<Object> result, boolean undone) { try { result = (Collection<Object>)func.handleResult(result); return DelegatingPullSubscriptionIntermediateDelegationFuture.super.doSetResult(result, func.isUndone(undone)); } catch(Exception e) { return doSetException(e, func.isUndone(undone)); } }
PullSubscriptionIntermediateDelegationFuture<Object> fut = new DelegatingPullSubscriptionIntermediateDelegationFuture((IPullSubscriptionIntermediateFuture)orig, func);
/** * */ public boolean setFinishedIfUndone() { boolean ret = false; try { func.setFinishedIfUndone((Collection<Object>)getIntermediateResults()); ret = DelegatingPullSubscriptionIntermediateDelegationFuture.super.setFinishedIfUndone(); } catch(Exception e) { DelegatingPullSubscriptionIntermediateDelegationFuture.super.setExceptionIfUndone(e); } return ret; }
/** * Overwritten to change result, if necessary. */ @Override protected boolean doAddIntermediateResult(Object result, boolean undone) { try { result = func.handleIntermediateResult(result); return DelegatingPullSubscriptionIntermediateDelegationFuture.super.doAddIntermediateResult(result, func.isUndone(undone)); } catch(Exception e) { return doSetException(e, func.isUndone(undone)); } }
ret = new DelegatingPullSubscriptionIntermediateDelegationFuture(func);
/** * */ public void setFinished() { try { func.setFinished((Collection<Object>)getIntermediateResults()); DelegatingPullSubscriptionIntermediateDelegationFuture.super.setFinished(); } catch(Exception e) { DelegatingPullSubscriptionIntermediateDelegationFuture.super.setExceptionIfUndone(e); } }
ret = new DelegatingPullSubscriptionIntermediateDelegationFuture(func);
PullSubscriptionIntermediateDelegationFuture<Object> fut = new DelegatingPullSubscriptionIntermediateDelegationFuture((IPullSubscriptionIntermediateFuture)orig, func);