public abstract class Topic extends com.solacesystems.jcsmp.impl.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()
This flag, when present in a topic subscription, overrides the
DeliverToOne property in a
message. |
boolean |
isTemporary()
A flag indicating whether this is a temporary destination.
|
String |
toString() |
public 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 com.solacesystems.jcsmp.impl.AbstractDestinationtrue if this destination is marked as temporary,
false otherwise.public boolean equals(Object o)
Note: Topic equality ignores the
Topic.isRxAllDeliverToOne() flag; topics differing only by the value
of this flag are considered equal.
public String toString()
toString in class com.solacesystems.jcsmp.impl.AbstractDestinationpublic int hashCode()
Note: Topic equality ignores the
Topic.isRxAllDeliverToOne() flag; topics differing only by the value
of this flag are considered equal.
hashCode in class com.solacesystems.jcsmp.impl.AbstractDestinationCopyright 2004-2018 Solace Corporation. All rights reserved.