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.Queuejavax.jms.JMSExceptionQueue.getQueueName()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.