Examples of send()


Examples of org.springframework.xd.dirt.test.source.NamedChannelSource.send()

    NamedChannelSource source = new SingleNodeNamedChannelSourceFactory(bus).createNamedChannelSource("queue:source");
    NamedChannelSink streamSink = new SingleNodeNamedChannelSinkFactory(bus).createNamedChannelSink("queue:sink");
    NamedChannelSink tapSink = new SingleNodeNamedChannelSinkFactory(bus).createNamedChannelSink("queue:tap");

    source.send(new GenericMessage<String>("Dracarys!"));

    Message<?> m1;
    int count1 = 0;
    String result1 = null;
    while ((m1 = streamSink.receive(1000)) != null) {
View Full Code Here

Examples of org.structr.websocket.StructrWebSocket.send()

            result.add(map);
          }

          webSocketData.setResult(result);
          webSocket.send(webSocketData, true);
        }

      } catch (FrameworkException fex) {

        getWebSocket().send(MessageBuilder.status().code(400).message(fex.getMessage()).build(), true);
View Full Code Here

Examples of org.switchyard.Exchange.send()

            }
            Object contentIn = request.getContent();
            if (contentIn != null) {
                messageIn.setContent(contentIn);
            }
            exchangeIn.send(messageIn);
            if (ExchangePattern.IN_OUT.equals(exchangeIn.getContract().getConsumerOperation().getExchangePattern())) {
                Exchange exchangeOut = handler.waitForOut();
                Message messageOut = exchangeOut.getMessage();
                contentOut = messageOut.getContent();
                for (Property property : exchangeOut.getContext(messageOut).getProperties()) {
View Full Code Here

Examples of org.talamonso.OMAPI.Objects.Host.send()

    try {
      Host newHost = new Host(c);
      newHost.setName(name);
      newHost.setHardwareAddress(macAddress);
      newHost.setHardwareType(1);
      newHost.send(Message.CREATE);
    } catch (OmapiObjectException e1) {
      // Update failed for some reason
      e1.printStackTrace();
    }
View Full Code Here

Examples of org.teavm.dom.ajax.XMLHttpRequest.send()

                    receiveResponse(xhr.getResponseText());
                }
            }
        });
        xhr.open("GET", "hello");
        xhr.send();
    }

    private static void receiveResponse(String text) {
        HTMLElement responseElem = document.createElement("div");
        responseElem.appendChild(document.createTextNode(text));
View Full Code Here

Examples of org.terasology.entitySystem.entity.EntityRef.send()

            target = blockEntityRegistry.getBlockEntityAt(NetMessageUtil.convert(message.getTargetBlockPos()));
        } else if (message.hasTargetId()) {
            target = networkSystem.getEntity(message.getTargetId());
        }
        if (target.exists()) {
            target.send(event);
        } else {
            logger.info("Dropping event {} for unavailable entity {}", event.getClass().getSimpleName(), target);
        }
    }
View Full Code Here

Examples of org.terasology.network.Client.send()

        if (networkSystem.getMode().isServer()) {
            NetworkComponent netComp = entity.getComponent(NetworkComponent.class);
            if (netComp != null) {
                Client client = networkSystem.getOwner(entity);
                if (client != null) {
                    client.send(event, entity);
                }
            }
        }
    }
View Full Code Here

Examples of org.timepedia.chronoscope.gviz.api.client.Query.send()

      public void execute() {
        ChronoscopeOptions.setErrorReporting(false);
        Chronoscope.setFontBookRendering(true);
        Query q=GadgetHelper.create().createQueryFromPrefs();
       
        q.send(new QueryResponseHandler() {
              public void onQueryResponse(QueryResponse response) {
                try {
                  setTitle.setTitle(prefs.chartTitle().getValue());
                  DataTable table = response.getDataTable();
                  Dataset ds[] = DataTableParser.parseDatasets(table, null);
View Full Code Here

Examples of org.vaadin.console.client.util.ClientCommUtils.Transcation.send()

        if (!initComplete) {
            return;
        }

        Transcation tx = comm.startTx();
        tx.send("height", getHeight());
        tx.send("width", getWidth());
        tx.commit();
    }

    public void terminalInput(TextConsole term, String input) {
View Full Code Here

Examples of org.vertx.java.core.eventbus.EventBus.send()

        Object body = getVertxBody(exchange);
        if (body != null) {
            if (reply) {
                LOG.debug("Sending to: {} with body: {}", address, body);
                eventBus.send(address, body, new CamelReplyHandler(exchange, callback));
                return false;
            } else {
                if (pubSub) {
                    LOG.debug("Publishing to: {} with body: {}", address, body);
                    eventBus.publish(address, body);
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.