public class GSTopicImpl extends Object implements javax.jms.Topic, Serializable, Remote
javax.jms.Topic interface.
A Topic object encapsulates a provider-specific topic name. In our case, the Topic
name represents the GigaSpaces entry name.
It is the way a client specifies the identity of a topic to JMS API methods. For those methods
that use a Destination as a parameter, a Topic object may used as an
argument . For example, a Topic can be used to create a MessageConsumer and a
MessageProducer by calling: Session.CreateConsumer(Destination
destination) Session.CreateProducer(Destination destination)
Many publish/subscribe (pub/sub) providers group topics into hierarchies and provide various
options for subscribing to parts of the hierarchy. The JMS API places no restriction on what a
Topic object represents. It may be a leaf in a topic hierarchy, or it may be a
larger part of the hierarchy.
| Constructor and Description |
|---|
GSTopicImpl(String topicName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getTopicName() |
int |
hashCode() |
protected boolean |
isTemporaryDestination()
This method determines whether a particular Destination instance refers to a temporary
destination.
|
String |
toString() |
public GSTopicImpl(String topicName)
topicName - public String getTopicName() throws javax.jms.JMSException
getTopicName in interface javax.jms.Topicjavax.jms.JMSExceptionTopic.getTopicName()protected boolean isTemporaryDestination()
public String toString()
public boolean equals(Object obj)
public int hashCode()
hashCode in class ObjectUsing the Destination name and return its hashcode. That enables
indexing and partitioning capabilities.Copyright © GigaSpaces.