
com.hivemq.mqtt.message.subscribe.Mqtt5Topic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hivemq-community-edition-embedded Show documentation
Show all versions of hivemq-community-edition-embedded Show documentation
HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5
The newest version!
/*
* Copyright 2019-present HiveMQ GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hivemq.mqtt.message.subscribe;
import com.hivemq.extension.sdk.api.annotations.NotNull;
import com.hivemq.mqtt.message.QoS;
import com.hivemq.mqtt.message.mqtt5.Mqtt5RetainHandling;
/**
* @author Florian Limpöck
* @since 4.0.0
*/
public interface Mqtt5Topic {
/**
* The default for whether the client must not receive messages published by itself.
*/
boolean DEFAULT_NO_LOCAL = false;
/**
* The default handling of retained message.
*/
Mqtt5RetainHandling DEFAULT_RETAIN_HANDLING = Mqtt5RetainHandling.SEND;
/**
* The default for whether the retain flag for incoming publishes must be set to its original value.
*/
boolean DEFAULT_RETAIN_AS_PUBLISHED = false;
/**
* @return the topic as String representation
*/
@NotNull String getTopic();
/**
* @return the QoS of a Topic
*/
@NotNull QoS getQoS();
/**
* @return whether the client must not receive messages published by itself. The default is
* {@link #DEFAULT_NO_LOCAL}.
*/
boolean isNoLocal();
/**
* @return the handling of retained message for this subscription. The default is {@link #DEFAULT_RETAIN_HANDLING}.
*/
@NotNull Mqtt5RetainHandling getRetainHandling();
/**
* @return whether the retain flag for incoming publishes must be set to its original value.
*/
boolean isRetainAsPublished();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy