public Object addIntermediateResult(Object result) { RuntimeException ex = checkPostConditions(sic, result, true, ires); int keep = getKeepForPostConditions(sic); addIntermediateResultToStore(result, keep); if(ex!=null) throw ex; else return result; }
/** * Create a new interceptor. */ public MonitoringInterceptor(IInternalAccess component) { super(component); this.getter = new ServiceGetter<IMonitoringService>(component, IMonitoringService.class, RequiredServiceInfo.SCOPE_PLATFORM); }
public synchronized Object addIntermediateResultIfUndone(Object result) { if(ex!=null) throw ex; return doCopy(copy, deffilter, result); }
/** * */ public void setFinished() { try { func.setFinished((Collection<Object>)getIntermediateResults()); DelegatingSubscriptionIntermediateDelegationFuture.super.setFinished(); } catch(Exception e) { DelegatingSubscriptionIntermediateDelegationFuture.super.terminate(e); } }
/** * */ public void setFinished() { try { func.setFinished((Collection<Object>)getIntermediateResults()); DelegatingTerminableIntermediateDelegationFuture.super.setFinished(); } catch(Exception e) { DelegatingTerminableIntermediateDelegationFuture.super.terminate(e); } }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingPullIntermediateDelegationFuture.super.doSetException(exception, func.isUndone(undone)); }
@Override public void execute(Void args) { func.handleTerminated(reason); DelegatingSubscriptionIntermediateDelegationFuture.super.terminate(reason); } });
/** * Send a backward command. */ public void sendBackwardCommand(Object info, IResultListener<Void> com) { internalNotifyListener(com); }
public Object setResultIfUndone(Object result) { return setResult(result); } };
@Override public Object handleIntermediateResult(Object result) throws Exception { Exception ex = checkPostConditions(sic, result, true, ires); int keep = getKeepForPostConditions(sic); addIntermediateResultToStore(result, keep); if(ex!=null) throw ex; else return result; }
@Override public Object handleIntermediateResult(Object result) throws Exception { if(ex!=null) throw ex; return doCopy(copy, deffilter, result); }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingTerminableDelegationFuture.super.doSetException(exception, func.isUndone(undone)); }
@Override public void execute(Void args) { func.handleTerminated(reason); DelegatingPullSubscriptionIntermediateDelegationFuture.super.terminate(reason); } });
public synchronized Object addIntermediateResult(Object result) { if(ex!=null) throw ex; return doCopy(copy, deffilter, result); }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingPullSubscriptionIntermediateDelegationFuture.super.doSetException(exception, func.isUndone(undone)); }
@Override public void execute(Void args) { func.handleTerminated(reason); DelegatingTerminableDelegationFuture.super.terminate(reason); } });
public synchronized Object setResultIfUndone(Object result) { if(ex!=null) throw ex; return doCopy(copy, deffilter, result); }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingSubscriptionIntermediateDelegationFuture.super.doSetException(exception, func.isUndone(undone)); }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingTerminableIntermediateDelegationFuture.super.doSetException(exception, func.isUndone(undone)); }
/** * Overwritten to change undone, if necessary. */ @Override protected boolean doSetException(Exception exception, boolean undone) { return DelegatingIntermediateFuture.super.doSetException(exception, func.isUndone(undone)); }