ia.waitForDelay(w, step, realtime);
public void finished() { // If no platform found, search again after 1 second. if(!connected) { agent.waitForDelay(RETRY_DELAY, JCCAgent.this, true) .addResultListener(new DelegationResultListener<Void>(ret)); } }
public void exceptionOccurred(Exception exception) { // If no platform found, search again after 1 second. if(!connected) { agent.waitForDelay(exception instanceof TimeoutException ? 0 : RETRY_DELAY, JCCAgent.this, true) .addResultListener(new DelegationResultListener<Void>(ret)); } } }));
/** * Test method. */ public IFuture<String> test() { System.out.println("invoked service: "+sid.getProviderId()+" cnt="+(++cnt)+" wait="+wait); comp.waitForDelay(wait).get(); return new Future<String>(sid.toString()); } }
public IFuture<Void> execute(IInternalAccess ia) { if(!ret.isDone()) { ret.sendForwardCommand(IForwardCommandFuture.Type.UPDATETIMER); ia.waitForDelay(w, this, realtime); } return IFuture.DONE; } };
ia.waitForDelay(delay, new IComponentStep<Void>()
public void resultAvailable(Void result) { setValue(measureValue()); comp.waitForDelay(mi.getUpdateRate(), mi.isRealtime()).addResultListener(this); }
comp.waitForDelay(mi.getUpdateRate(), mi.isRealtime()).addResultListener(res);