Package com.swiftmq.jms
Class QueueImpl
- java.lang.Object
-
- com.swiftmq.jms.QueueImpl
-
- All Implemented Interfaces:
DestinationImpl
,java.io.Serializable
,javax.jms.Destination
,javax.jms.Queue
,javax.naming.Referenceable
- Direct Known Subclasses:
TemporaryQueueImpl
,TopicImpl
public class QueueImpl extends java.lang.Object implements javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable, DestinationImpl
Implementation of a Queue.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getQueueName()
Get the name of this queue.javax.naming.Reference
getReference()
int
getType()
void
readContent(java.io.DataInput in)
void
setQueueName(java.lang.String queueName)
Set the queue name.java.lang.String
toString()
Return a pretty printed version of the queue namevoid
unfoldBuffers()
void
writeContent(java.io.DataOutput out)
-
-
-
Method Detail
-
getReference
public javax.naming.Reference getReference() throws javax.naming.NamingException
- Specified by:
getReference
in interfacejavax.naming.Referenceable
- Throws:
javax.naming.NamingException
-
unfoldBuffers
public void unfoldBuffers()
- Specified by:
unfoldBuffers
in interfaceDestinationImpl
-
getType
public int getType()
- Specified by:
getType
in interfaceDestinationImpl
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
- Specified by:
writeContent
in interfaceDestinationImpl
- Throws:
java.io.IOException
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException
- Specified by:
readContent
in interfaceDestinationImpl
- Throws:
java.io.IOException
-
getQueueName
public java.lang.String getQueueName() throws javax.jms.JMSException
Get the name of this queue.Clients that depend upon the name, are not portable.
- Specified by:
getQueueName
in interfacejavax.jms.Queue
- Returns:
- the queue name
- Throws:
javax.jms.JMSException
- if JMS implementation for Queue fails to to return queue name due to some internal error.
-
setQueueName
public void setQueueName(java.lang.String queueName)
Set the queue name.- Parameters:
queueName
- queue name.
-
toString
public java.lang.String toString()
Return a pretty printed version of the queue name- Specified by:
toString
in interfacejavax.jms.Queue
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the provider specific identity values for this queue.
-
-