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