/** * Pull an intermediate result. */ public void pullIntermediateResult() { func.pullIntermediateResult(new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingPullSubscriptionIntermediateDelegationFuture.super.pullIntermediateResult(); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingPullSubscriptionIntermediateDelegationFuture.super.setExceptionIfUndone(exception); } }); }
/** * Pull an intermediate result. */ public void pullIntermediateResult() { func.pullIntermediateResult(new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingPullIntermediateDelegationFuture.super.pullIntermediateResult(); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingPullIntermediateDelegationFuture.super.setExceptionIfUndone(exception); } }); }