/** * Set the properties of the next invocation. * @param timeout The timeout. * @param realtime The realtime flag. */ public static ServiceCall getOrCreateNextInvocation() { return getOrCreateNextInvocation(null); }
/** * Set the properties of the next invocation. * @param timeout The timeout. * @param realtime The realtime flag. */ public static ServiceCall getOrCreateNextInvocation() { return getOrCreateNextInvocation(null); }
ServiceCall.getOrCreateNextInvocation(props);
ServiceCall.getOrCreateNextInvocation(props);
ServiceCall call = ServiceCall.getOrCreateNextInvocation(); call.setTimeout(to); call.setRealtime(Boolean.TRUE); System.out.println("calling method: "+ServiceCall.getOrCreateNextInvocation());
public void customResultAvailable(final ITestService ts) { // create a service call meta object and set the timeout if(to!=-1) { // ServiceCall.setInvocationProperties(to, true); ServiceCall call = ServiceCall.getOrCreateNextInvocation(); call.setTimeout(to); call.setRealtime(Boolean.TRUE); } // System.out.println("calling method: "+ServiceCall.getOrCreateNextInvocation()); callMethod(ts, 1, ret).addResultListener(new IResultListener<Void>() { public void resultAvailable(Void result) { ret.setFinished(); } public void exceptionOccurred(Exception exception) { ret.setException(exception); } }); } });
ServiceCall call = ServiceCall.getOrCreateNextInvocation(); call.setProperty("extra", "somval");
ServiceCall sc = ServiceCall.getOrCreateNextInvocation(); // hmm has not been switched during call to last if(sc!=null)
ServiceCall.getOrCreateNextInvocation().setTimeout(1000);
ServiceCall.getOrCreateNextInvocation().setTimeout(timeout);
ServiceCall invoc = ServiceCall.getOrCreateNextInvocation(props);
ServiceCall invoc = ServiceCall.getOrCreateNextInvocation(props);
ServiceCall.getOrCreateNextInvocation().setTimeout(1000); IRequiredServicesFeature rsf = getAgent().getComponentFeature(IRequiredServicesFeature.class); ITerminableIntermediateFuture<IBuyBookService> fut = rsf.getRequiredServices("buyservice");