Examples of send()


Examples of co.paralleluniverse.strands.channels.IntChannel.send()

        final IntChannel lastChannel = a;

        Fiber<Integer> manager = new Fiber<Integer>() {
            @Override
            protected Integer run() throws InterruptedException, SuspendExecution {
                lastChannel.send(1); // start things off

                int msg = 0;
                try {
                    for (int i = 0; i < M; i++) {
                        msg = managerChannel.receiveInt();
View Full Code Here

Examples of com.acelet.lib.SendEmail.send()

      System.out.println(Phrase.get("ER_EMAIL") + ": Subject=" + subject + "\n " + msg);
      return;
    }
   
    SendEmail sendEmail = MailServerData.getSendEmailObject();
    sendEmail.send(alarmEmail, sendEmail.getPostmasterEmailAddress(),
        subject, "SuperWatchdog: " + msg);
  }

  public static void sendAlarmEmailForChoreError(String alarmEmail, String choreName, String msg)
  throws Exception {
View Full Code Here

Examples of com.aelitis.net.udp.uc.PRUDPPacketHandler.send()

          // fire off one last packet in attempt to inform server of completion

          listener.reportProgress( "Sending completion event" );

          packet_handler.send( request_packet, new InetSocketAddress( UDP_SERVER_ADDRESS, UDP_SERVER_PORT ));

        }catch( Throwable e){ 
        }
      }
    }catch( NetworkAdminException e ){
View Full Code Here

Examples of com.aicontest.visualizer.js.dom.XMLHttpRequest.send()

    ww.runProgram();
    URI uri = replayStringToUri(replaySource);
    XMLHttpRequest xhr = new XMLHttpRequest();
    xhr.open("GET", uri.toString());
    try {
      xhr.send();
    } catch (IOException e) {
      System.err.println("Could not load " + replaySource + ": " + e);
      System.exit(1);
    }
    String replayStr = xhr.getResponseText();
View Full Code Here

Examples of com.alibaba.dubbo.remoting.Channel.send()

        Channel channel = getChannel();
        //TODO getChannel返回的状态是否包含null需要改进
        if (channel == null || ! channel.isConnected()) {
          throw new RemotingException(this, "message can not send, because channel is closed . url:" + getUrl());
        }
        channel.send(message, sent);
    }
   
    protected void connect() throws RemotingException {
        connectLock.lock();
        try {
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.ExchangeClient.send()

        ExchangeClient currentClient = new HeaderExchangeClient(new ChannelWrapper(this.channel));

        try {
            if (getUrl().getMethodParameter(invocation.getMethodName(), Constants.ASYNC_KEY, false)) { // 不可靠异步
                currentClient.send(inv,getUrl().getMethodParameter(invocation.getMethodName(), Constants.SENT_KEY, false));
                return new RpcResult();
            }
            int timeout = getUrl().getMethodParameter(invocation.getMethodName(),
                    Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT);
            if (timeout > 0) {
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient.send()

        ExchangeClient currentClient = new HeaderExchangeClient(new ChannelWrapper(this.channel));

        try {
            if (getUrl().getMethodParameter(invocation.getMethodName(), Constants.ASYNC_KEY, false)) { // 不可靠异步
                currentClient.send(inv,getUrl().getMethodParameter(invocation.getMethodName(), Constants.SENT_KEY, false));
                return new RpcResult();
            }
            int timeout = getUrl().getMethodParameter(invocation.getMethodName(),
                    Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT);
            if (timeout > 0) {
View Full Code Here

Examples of com.alibaba.rocketmq.client.producer.DefaultMQProducer.send()

                Message msg = new Message("TopicTest",// topic
                    tags[i % tags.length],// tag
                    "KEY" + i,// key
                    ("Hello RocketMQ " + i).getBytes()// body
                        );
                SendResult sendResult = producer.send(msg);
                System.out.println(sendResult);
            }
            catch (Exception e) {
                e.printStackTrace();
                Thread.sleep(1000);
View Full Code Here

Examples of com.alibaba.rocketmq.client.producer.MQProducer.send()

                int orderId = i % 10;
                Message msg =
                        new Message("TopicTest", tags[i % tags.length], "KEY" + i,
                            ("Hello RocketMQ " + i).getBytes());

                SendResult sendResult = producer.send(msg, new MessageQueueSelector() {
                    @Override
                    public MessageQueue select(List<MessageQueue> mqs, Message msg, Object arg) {
                        Integer id = (Integer) arg;
                        int index = id % mqs.size();
                        return mqs.get(index);
View Full Code Here

Examples of com.alipay.bluewhale.core.messaging.IConnection.send()

              LOG.warn("DrainerRunable warn", new Exception(
                  errormsg));
              continue;
            }

            conn.send(taskId, tuple);
          }
          drainer.clear();
        }
      } catch (Exception e) {
        LOG.error("DrainerRunable send error", e);
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.