Examples of qos()


Examples of org.fusesource.mqtt.client.Topic.qos()

                if (removed != null) {
                    Topic topic = removed._1();
                    BindAddress address = removed._2();
                    mqtt_consumer().addresses.remove(address);
                    if (PathParser.containsWildCards(address.path())) {
                        mqtt_consumer().wildcards.remove(address.path(), topic.qos());
                    }
                    return Scala2Java.some(address);
                } else {
                    return Scala2Java.none();
                }
View Full Code Here

Examples of org.fusesource.mqtt.client.Topic.qos()

                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());
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

    }

    PUBLISH createPublish(ActiveMQMessage message) throws DataFormatException, IOException, JMSException {
        PUBLISH publish = protocolConverter.convertMessage(message);
        if (publish.qos().ordinal() > this.qos.ordinal()) {
            publish.qos(this.qos);
        }
        return publish;
    }

    public boolean expectAck() {
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

        return new MessageAck(md, MessageAck.STANDARD_ACK_TYPE, 1);
    }

    PUBLISH createPublish(ActiveMQMessage message) throws DataFormatException, IOException, JMSException {
        PUBLISH publish = protocolConverter.convertMessage(message);
        if (publish.qos().ordinal() > this.qos.ordinal()) {
            publish.qos(this.qos);
        }
        return publish;
    }
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

            qoS = QoS.values()[ordinal];

        } else {
            qoS = message.isPersistent() ? QoS.AT_MOST_ONCE : QoS.AT_LEAST_ONCE;
        }
        result.qos(qoS);

        UTF8Buffer topicName;
        synchronized (mqttTopicMap) {
            topicName = mqttTopicMap.get(message.getJMSDestination());
            if (topicName == null) {
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

        if (connect != null) {
            if (connect.willTopic() != null && connect.willMessage() != null) {
                try {
                    PUBLISH publish = new PUBLISH();
                    publish.topicName(connect.willTopic());
                    publish.qos(connect.willQos());
                    publish.payload(connect.willMessage());
                    ActiveMQMessage message = convertMessage(publish);
                    message.setProducerId(producerId);
                    message.onSend();
                    sendToActiveMQ(message, null);
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

            qoS = QoS.values()[ordinal];

        } else {
            qoS = message.isPersistent() ? QoS.AT_MOST_ONCE : QoS.AT_LEAST_ONCE;
        }
        result.qos(qoS);

        UTF8Buffer topicName;
        synchronized (mqttTopicMap) {
            topicName = mqttTopicMap.get(message.getJMSDestination());
            if (topicName == null) {
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

        if (connect != null) {
            if (connected.get() && connect.willTopic() != null && connect.willMessage() != null) {
                try {
                    PUBLISH publish = new PUBLISH();
                    publish.topicName(connect.willTopic());
                    publish.qos(connect.willQos());
                    publish.payload(connect.willMessage());
                    ActiveMQMessage message = convertMessage(publish);
                    message.setProducerId(producerId);
                    message.onSend();
                    sendToActiveMQ(message, null);
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

        if (connect != null) {
            if (connected.get() && connect.willTopic() != null && connect.willMessage() != null) {
                try {
                    PUBLISH publish = new PUBLISH();
                    publish.topicName(connect.willTopic());
                    publish.qos(connect.willQos());
                    publish.payload(connect.willMessage());
                    ActiveMQMessage message = convertMessage(publish);
                    message.setProducerId(producerId);
                    message.onSend();
                    sendToActiveMQ(message, null);
View Full Code Here

Examples of org.fusesource.mqtt.codec.PUBLISH.qos()

            qoS = QoS.values()[ordinal];

        } else {
            qoS = message.isPersistent() ? QoS.AT_MOST_ONCE : QoS.AT_LEAST_ONCE;
        }
        result.qos(qoS);

        UTF8Buffer topicName;
        synchronized (mqttTopicMap) {
            topicName = mqttTopicMap.get(message.getJMSDestination());
            if (topicName == null) {
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.