public class GSQueueImpl extends Object implements javax.jms.Queue, Serializable, Remote
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)
Constructor and Description |
---|
GSQueueImpl(String queueName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getQueueName() |
int |
hashCode() |
protected boolean |
isTemporaryDestination()
This method determines whether a particular Destination instance refers to a temporary
destination.
|
String |
toString() |
public GSQueueImpl(String queueName)
queueName
- public String getQueueName() throws javax.jms.JMSException
getQueueName
in interface javax.jms.Queue
javax.jms.JMSException
Queue.getQueueName()
protected boolean isTemporaryDestination()
public String toString()
public boolean equals(Object obj)
public int hashCode()
hashCode
in class Object
Using the Destination name and return its hashcode. That enables
indexing and partitioning capabilities.
Copyright © GigaSpaces.