public abstract class Topic extends AbstractDestination implements Subscription, Serializable
Topic names are NULL-terminated UTF-8 strings with a maximum encoded length of 250 bytes, not including the NULL terminator.
Topic names are case-sensitive.
Topic names are hierarchical, with levels separated by the /
character. A topic may not contain an empty level. A topic is wildcarded if
its last level is the character > or a level contains a
*.
Topics may be composed of any UTF-8 character. If the "*" character appears within a topic, it must be the last character in a level.
The RxAllDeliverToOne flag is valid on topic
subscriptions.
Topic instance only when it is first used with an initialized.
Session in client mode (that is, topic-routing mode) or non-client mode (that is, content-routing mode), at which point an
InvalidArgumentException is thrown if the topic string is not legal for
the configured session mode.
This class is thread safe.
This class is immutable.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Tests if equal to another topic.
|
int |
hashCode()
Gets the hashcode.
|
boolean |
isRxAllDeliverToOne()
Deprecated.
|
boolean |
isTemporary()
A flag indicating whether this is a temporary destination.
|
String |
toString() |
getName, getVirtualRouterName, initIfRequiredpublic boolean isRxAllDeliverToOne()
DeliverToOne property in a
message. If the topic in the message matches, it is delivered to
clients with matching subscriptions with the
RxAllDeliverToOne set, in addition to being round-robined
amongst clients subscribed to the topic without this override.
public boolean isTemporary()
DestinationisTemporary in interface DestinationisTemporary in class AbstractDestinationtrue if this destination is marked as temporary,
false otherwise.public boolean equals(Object o)
Note: Topic equality ignores the
isRxAllDeliverToOne() flag; topics differing only by the value
of this flag are considered equal.
public String toString()
toString in class AbstractDestinationpublic int hashCode()
Note: Topic equality ignores the
isRxAllDeliverToOne() flag; topics differing only by the value
of this flag are considered equal.
hashCode in class AbstractDestinationCopyright 2004-2021 Solace Corporation. All rights reserved.