Examples of BindAddress


Examples of org.apache.activemq.apollo.broker.BindAddress

                for (Short id : received_message_ids) {
                    session_pb.addReceivedMessageIds(id.intValue());
                }
                for (Tuple2<Topic, BindAddress> entry : subscriptions.values()) {
                    Topic topic = entry._1();
                    BindAddress address = entry._2();
                    TopicPB.Bean topic_pb = new TopicPB.Bean();
                    topic_pb.setName(topic.name());
                    topic_pb.setQos(topic.qos().ordinal());
                    topic_pb.setAddress(new UTF8Buffer(address.toString()));
                    session_pb.addSubscriptions(topic_pb);
                }
                uow.put(session_key, session_pb.freeze().toUnframedBuffer());

                final DispatchQueue current = Dispatch.getCurrentQueue();
View Full Code Here

Examples of ratpack.server.BindAddress

    final Handler next = context -> {
      calledNext = true;
      latch.countDown();
    };

    final BindAddress bindAddress = new BindAddress() {
      @Override
      public String getHost() {
        return "localhost";
      }
View Full Code Here

Examples of ratpack.server.BindAddress

          HostAndPort hostData = getHostData(context);
          if (hostData != null) {
            host = hostData.getHostText();
            port = hostData.getPortOrDefault(-1);
          } else {
            BindAddress bindAddress = context.getBindAddress();
            int bindPort = bindAddress.getPort();
            host = bindAddress.getHost();
            port = ProtocolUtil.isDefaultPortForScheme(bindPort, this.scheme) ? -1 : bindPort;
          }
        }
      }
      try {
View Full Code Here

Examples of ratpack.server.BindAddress

    final Response response = new DefaultResponse(execControl, responseHeaders, ctx.alloc(), responseTransmitter);
    ctx.attr(RESPONSE_TRANSMITTER_ATTRIBUTE_KEY).set(responseTransmitter);

    InetSocketAddress socketAddress = (InetSocketAddress) channel.localAddress();
    final BindAddress bindAddress = new InetSocketAddressBackedBindAddress(socketAddress);

    Action<Action<Object>> subscribeHandler = thing -> {
      transmitted.set(true);
      channelSubscriptions.put(channel, thing);
      channel.closeFuture().addListener(future -> channelSubscriptions.remove(channel));
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.