Examples of waitForResponse()


Examples of org.apache.xmlrpc.client.TimingOutCallback.waitForResponse()

        TimingOutCallback toc = new TimingOutCallback(5000);
        final String methodName = XMLRPC89Handler.class.getName() + ".reverse";
        client.executeAsync(methodName, new Object[]{new Object[]{"1", "2", "3"}}, toc);
        Object o;
        try {
            o = toc.waitForResponse();
        } catch (Exception e) {
            throw e;
        } catch (Throwable t) {
            throw new UndeclaredThrowableException(t);
        }
View Full Code Here

Examples of org.apache.xmlrpc.client.TimingOutCallback.waitForResponse()

        }

        long startTime = System.currentTimeMillis();
        _client.executeAsync("OvmDispatch", mParams, callback);
        try {
            return callback.waitForResponse();
        } catch (TimingOutCallback.TimeoutException to) {
            throw to;
        } catch (Throwable e) {
            throw new XmlRpcException(-2, e.getMessage());
        } finally {
View Full Code Here

Examples of org.jboss.aspects.asynchronous.aspects.AsynchronousFacade.waitForResponse()

    long res1 = businessModel.processBusinessModel2(parameter);
    BusinessModel.sleep(sleep);
    AsynchronousTask asynchronousTask1 =
      asynchronousFacade.getAsynchronousTask();
    if (!asynchronousFacade.isDone(asynchronousTask1))
      asynchronousFacade.waitForResponse(asynchronousTask1);
      result =asynchronousFacade.getReturnValue(asynchronousTask1);
  }
}
View Full Code Here

Examples of org.jboss.aspects.asynchronous.aspects.AsynchronousFacade.waitForResponse()

      asynchronousFacade.getAsynchronousTask();

    if (!asynchronousFacade.isDone(asynchronousTask1))

      asynchronousFacade.waitForResponse(asynchronousTask1);

      result =asynchronousFacade.getReturnValue(asynchronousTask1);

View Full Code Here

Examples of org.jboss.aspects.asynchronous.aspects.AsynchronousFacade.waitForResponse()

      asynchronousFacade.getAsynchronousTask();

    if (!asynchronousFacade.isDone(asynchronousTask1))

      asynchronousFacade.waitForResponse(asynchronousTask1);

      result =asynchronousFacade.getReturnValue(asynchronousTask1);

View Full Code Here

Examples of org.jboss.aspects.asynchronous.aspects.AsynchronousFacade.waitForResponse()

    long res1 = businessModel.processBusinessModel2(parameter);
    BusinessModel.sleep(sleep);
    AsynchronousTask asynchronousTask1 =
      asynchronousFacade.getAsynchronousTask();
    if (!asynchronousFacade.isDone(asynchronousTask1))
      asynchronousFacade.waitForResponse(asynchronousTask1);
      result =asynchronousFacade.getReturnValue(asynchronousTask1);
  }
}
View Full Code Here

Examples of org.talend.esb.job.controller.internal.RuntimeESBProviderCallback.MessageExchange.waitForResponse()

        MessageExchange myExchange = new MessageExchange(payload);
        buffer.put(myExchange);
        if (!isRequestResponse) {
            return null;
        }
        return myExchange.waitForResponse();
    }
}
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

                }
            } while (!done);


            if (!async) {
                cb.waitForResponse();
                vt = cb.getResponse().getResults()[0];
                assertTrue(vt.getRowCount() == 1);
                // assertTrue(vt.asScalarLong() == 1);
            }
        }
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        client.callProcedure(cb,
                org.voltdb.benchmark.tpcc.procedures.InsertOrderLineBatched.class.getSimpleName(),
                new long[] {x}, new long[] {x}, x, new long[] {x},
                new long[] {x}, new long[] {x}, new TimestampType[] { new TimestampType() }, new long[] {x},
                new double[] {x}, new String[] {"a"});
        cb.waitForResponse();

        // make sure the previous catalog change has completed
        client.drain();

        // now calling the new proc better work
View Full Code Here

Examples of org.voltdb.client.SyncCallback.waitForResponse()

        client.callProcedure(cb,
                org.voltdb.benchmark.tpcc.procedures.InsertOrderLineBatched.class.getSimpleName(),
                new long[] {x}, new long[] {x}, x, new long[] {x},
                new long[] {x}, new long[] {x}, new TimestampType[] { new TimestampType() }, new long[] {x},
                new double[] {x}, new String[] {"a"});
        cb.waitForResponse();

        // make sure the previous catalog change has completed
        client.drain();

        // now calling the new proc better fail
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.