@DoNotImplement public interface MqttTopic extends MqttUtf8String
A Topic Name has the same requirements as an UTF-8 encoded string
. Additionally it
Modifier and Type | Field and Description |
---|---|
static char |
TOPIC_LEVEL_SEPARATOR
The topic level separator character.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull MqttTopicBuilder |
builder()
Creates a builder for a Topic Name.
|
MqttTopicBuilder.Complete |
extend()
Creates a builder for extending this Topic Name.
|
@NotNull MqttTopicFilter |
filter() |
@Immutable @NotNull List<String> |
getLevels() |
static @NotNull MqttTopic |
of(@NotNull String string)
Validates and creates a Topic Name of the given string.
|
containsShouldNotCharacters, toByteBuffer
compareTo
static final char TOPIC_LEVEL_SEPARATOR
@NotNull static @NotNull MqttTopic of(@NotNull @NotNull String string)
of
in interface MqttUtf8String
string
- the string representation of the Topic Name.IllegalArgumentException
- if the string is not a valid Topic Name.@NotNull static @NotNull MqttTopicBuilder builder()
@NotNull @Immutable @NotNull List<String> getLevels()
@NotNull @NotNull MqttTopicFilter filter()
MqttTopicBuilder.Complete extend()