com.j_spaces.jms
Class GSQueueImpl
java.lang.Object
com.j_spaces.jms.GSQueueImpl
- All Implemented Interfaces:
- Serializable, Remote, Destination, Queue
- Direct Known Subclasses:
- GSTemporaryQueueImpl
public class GSQueueImpl
- extends Object
- implements Queue, Serializable, Remote
GigaSpaces implementation of the javax.jms.Queue
interface.
This class represents a queue which provides it's messages exclusively to one
consumer at a time. In our case, the Queue name represents the GigaSpaces entry name.
A Queue
object encapsulates a provider-specific queue name.
It is the way a client specifies the identity of a queue to JMS API methods.
For those methods that use a Destination
as a parameter, a
Queue
object used as an argument. For example, a queue can
be used to create a MessageConsumer
and a
MessageProducer
by calling:
-
Session.CreateConsumer(Destination destination)
-
Session.CreateProducer(Destination destination)
- See Also:
- Serialized Form
GSQueueImpl
public GSQueueImpl(String queueName)
- Parameters:
queueName
-
getQueueName
public String getQueueName()
throws JMSException
- Specified by:
getQueueName
in interface Queue
- Returns:
- String m_queueName
- Throws:
JMSException
- See Also:
Queue.getQueueName()
toString
public String toString()
- Specified by:
toString
in interface Queue
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Using the Destination name and return true if its equals to the
passed Destination name.
That enables indexing and partitioning capabilities.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Using the Destination name and return its hashcode.
That enables indexing and partitioning capabilities.