Package com.swiftmq.jms
Class QueueImpl
- java.lang.Object
-
- com.swiftmq.jms.QueueImpl
-
- All Implemented Interfaces:
DestinationImpl,jakarta.jms.Destination,jakarta.jms.Queue,java.io.Serializable,javax.naming.Referenceable
- Direct Known Subclasses:
TemporaryQueueImpl,TopicImpl
public class QueueImpl extends java.lang.Object implements jakarta.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.StringgetQueueName()Get the name of this queue.javax.naming.ReferencegetReference()intgetType()voidreadContent(java.io.DataInput in)voidsetQueueName(java.lang.String queueName)Set the queue name.java.lang.StringtoString()Return a pretty printed version of the queue namevoidunfoldBuffers()voidwriteContent(java.io.DataOutput out)
-
-
-
Method Detail
-
getReference
public javax.naming.Reference getReference() throws javax.naming.NamingException- Specified by:
getReferencein interfacejavax.naming.Referenceable- Throws:
javax.naming.NamingException
-
unfoldBuffers
public void unfoldBuffers()
- Specified by:
unfoldBuffersin interfaceDestinationImpl
-
getType
public int getType()
- Specified by:
getTypein interfaceDestinationImpl
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException- Specified by:
writeContentin interfaceDestinationImpl- Throws:
java.io.IOException
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException- Specified by:
readContentin interfaceDestinationImpl- Throws:
java.io.IOException
-
getQueueName
public java.lang.String getQueueName() throws jakarta.jms.JMSExceptionGet the name of this queue.Clients that depend upon the name, are not portable.
- Specified by:
getQueueNamein interfacejakarta.jms.Queue- Returns:
- the queue name
- Throws:
jakarta.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:
toStringin interfacejakarta.jms.Queue- Overrides:
toStringin classjava.lang.Object- Returns:
- the provider specific identity values for this queue.
-
-