Package com.swiftmq.jms
Class QueueImpl
java.lang.Object
com.swiftmq.jms.QueueImpl
- All Implemented Interfaces:
DestinationImpl
,Serializable
,javax.jms.Destination
,javax.jms.Queue
,Referenceable
- Direct Known Subclasses:
TemporaryQueueImpl
,TopicImpl
public class QueueImpl
extends Object
implements javax.jms.Queue, Referenceable, Serializable, DestinationImpl
Implementation of a Queue.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of this queue.int
getType()
void
readContent
(DataInput in) void
setQueueName
(String queueName) Set the queue name.toString()
Return a pretty printed version of the queue namevoid
void
writeContent
(DataOutput out)
-
Constructor Details
-
QueueImpl
Creates a new QueueImpl.- Parameters:
queueName
- queue name.
-
QueueImpl
public QueueImpl()Creates a new QueueImpl.
-
-
Method Details
-
getReference
- Specified by:
getReference
in interfaceReferenceable
- Throws:
NamingException
-
unfoldBuffers
public void unfoldBuffers()- Specified by:
unfoldBuffers
in interfaceDestinationImpl
-
getType
public int getType()- Specified by:
getType
in interfaceDestinationImpl
-
writeContent
- Specified by:
writeContent
in interfaceDestinationImpl
- Throws:
IOException
-
readContent
- Specified by:
readContent
in interfaceDestinationImpl
- Throws:
IOException
-
getQueueName
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
Set the queue name.- Parameters:
queueName
- queue name.
-
toString
Return a pretty printed version of the queue name
-