/** * */ public void setFinished() { try { func.setFinished((Collection<Object>)getIntermediateResults()); DelegatingPullSubscriptionIntermediateDelegationFuture.super.setFinished(); } catch(Exception e) { DelegatingPullSubscriptionIntermediateDelegationFuture.super.setExceptionIfUndone(e); } }
/** * */ 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 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)); } }