Examples of receive()


Examples of com.ericsson.otp.erlang.OtpMbox.receive()

    msg = new OtpErlangTuple(msgArray);

    dbg("java_echo_server2 sending " + msg);
    mbox2.send(erlangPid,msg);

    o = mbox2.receive(recTime);
    dbg("java_echo_server received " + o);
    if (o == null) System.exit(4);
    if (!((OtpErlangAtom)o).equals(msgArray[1])) System.exit(5);

    break;

Examples of com.fly.test.activemqTest.ConsumerService.receive()

    producerService.send();
  }
  private static void receive(){
    ConsumerService consumerService = (ConsumerService)appContext.getBean("consumerService");
    consumerService.receive();
  }
}

Examples of com.github.kevinsawicki.http.HttpRequest.receive()

      Logs.debug("Download " + fullUrl + " to " + toFile.getAbsolutePath());
      HttpRequest httpRequest = newHttpRequest(new URL(fullUrl));
      if (!httpRequest.ok()) {
        throw new IOException(MessageFormat.format(STATUS_RETURNED_BY_URL_IS_INVALID, fullUrl, httpRequest.code()));
      }
      httpRequest.receive(toFile);

    } catch (Exception e) {
      if (e.getCause() instanceof ConnectException || e.getCause() instanceof UnknownHostException) {
        Logs.error(MessageFormat.format(SONAR_SERVER_CAN_NOT_BE_REACHED, serverUrl));
      }

Examples of com.google.greaze.rest.server.RestRequestBaseReceiver.receive()

  @Provides
  public RestRequestBase getRestRequest(GsonBuilder gsonBuilder, RestCallSpec callSpec,
      CallPath callPath, HttpServletRequest request, ResourceIdFactory<Id<?>> idFactory) {
      RestRequestBaseReceiver requestReceiver =
          new RestRequestBaseReceiver(gsonBuilder, callSpec.getRequestSpec());
      return requestReceiver.receive(request, idFactory.createId(callPath.getResourceId()));
  }

  @SuppressWarnings("rawtypes")
  @RequestScoped
  @Provides

Examples of com.google.greaze.webservice.server.RequestReceiver.receive()

    WebServiceCallSpec spec = ResourceQueryUtils.generateCallSpec(callPath,
        resourceQuery.getResourceType(), resourceQuery.getQueryType(),
        webContextSpec);
    RequestSpec requestSpec = spec.getRequestSpec();
    RequestReceiver requestReceiver = new RequestReceiver(gsonBuilder.get(), requestSpec);
    WebServiceRequest webServiceRequest = requestReceiver.receive(req);

    ResourceQueryParams queryParams =
      (ResourceQueryParams) webServiceRequest.getUrlParameters().getParamsObject();
    WebContext context = new WebContextExtractor(webContextSpec).extract(webServiceRequest.getHeaders());
    List results = resourceQuery.query(queryParams, context);

Examples of com.griddynamics.gridkit.coherence.patterns.message.benchmark.BenchmarkMessage.receive()

       
        while (true)
        { 
          BenchmarkMessage m = (BenchmarkMessage)subscriber.getMessage();
         
          workerResult.add(m.receive());
         
          if (m.isPoisonPill())
          {
            int i = poisonPillsReceived.incrementAndGet();
           

Examples of com.hazelcast.client.SimpleClient.receive()

    public void get() throws Exception {
        IAtomicReference<String> reference = getAtomicReference();

        final SimpleClient client = getClient();
        client.send(new GetRequest(name));
        assertNull(client.receive());

        reference.set("foo");
        client.send(new GetRequest(name));
        assertEquals("foo",client.receive());
    }

Examples of com.izforge.soapdtc.transport.HttpSoapTransport.receive()

        });
        response = soapTransport.sendReceive("http://localhost:8085/dtc/iya", message, null);
        assertEquals(0, nodeComparator.compare(message, response));

        // Sollicit-request
        response = soapTransport.receive("http://localhost:8085/dtc/iya", null);
        assertEquals(0, nodeComparator.compare(message, response));

        // Try a non-existent URL
        try
        {

Examples of com.peterhi.net.Local.receive()

    Runnable worker = new Runnable() {
      @Override
      public void run() {
        try {
          while (local.getSocket().isBound()) {
            DatagramPacket packet = local.receive();
           
            if (packet != null) {
              local.process(packet);
            }
           

Examples of com.stuffwithstuff.magpie.interpreter.Channel.receive()

  public static class Receive implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      Channel channel = (Channel) left.getValue();
     
      try {
        return channel.receive();
      } catch (InterruptedException e) {
        // TODO(bob): Better error.
        throw context.error("Error", "Interrupted");
      }
    }
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.