Package com.swiftmq.jms
Class TopicImpl
- java.lang.Object
-
- com.swiftmq.jms.QueueImpl
-
- com.swiftmq.jms.TopicImpl
-
- All Implemented Interfaces:
DestinationImpl
,java.io.Serializable
,javax.jms.Destination
,javax.jms.Queue
,javax.jms.Topic
,javax.naming.Referenceable
- Direct Known Subclasses:
TemporaryTopicImpl
public class TopicImpl extends QueueImpl implements javax.jms.Topic
Implementation of a Topic.- 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 javax.naming.Reference
getReference()
java.lang.String
getTopicName()
int
getType()
void
readContent(java.io.DataInput in)
void
setTopicName(java.lang.String topicName)
java.lang.String
toString()
Return a pretty printed version of the queue namevoid
unfoldBuffers()
void
writeContent(java.io.DataOutput out)
-
Methods inherited from class com.swiftmq.jms.QueueImpl
getQueueName, setQueueName
-
-
-
-
Constructor Detail
-
TopicImpl
public TopicImpl(java.lang.String topicName)
Creates a new TopicImpl.- Parameters:
topicName
- topic name.
-
TopicImpl
public TopicImpl(java.lang.String queueName, java.lang.String topicName)
Creates a new TopicImpl.- Parameters:
queueName
- name of the topic queue.topicName
- topic name.
-
TopicImpl
public TopicImpl()
Creates a new TopicImpl.
-
-
Method Detail
-
getReference
public javax.naming.Reference getReference() throws javax.naming.NamingException
- Specified by:
getReference
in interfacejavax.naming.Referenceable
- Overrides:
getReference
in classQueueImpl
- Throws:
javax.naming.NamingException
-
getType
public int getType()
- Specified by:
getType
in interfaceDestinationImpl
- Overrides:
getType
in classQueueImpl
-
unfoldBuffers
public void unfoldBuffers()
- Specified by:
unfoldBuffers
in interfaceDestinationImpl
- Overrides:
unfoldBuffers
in classQueueImpl
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
- Specified by:
writeContent
in interfaceDestinationImpl
- Overrides:
writeContent
in classQueueImpl
- Throws:
java.io.IOException
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException
- Specified by:
readContent
in interfaceDestinationImpl
- Overrides:
readContent
in classQueueImpl
- Throws:
java.io.IOException
-
getTopicName
public java.lang.String getTopicName() throws javax.jms.JMSException
- Specified by:
getTopicName
in interfacejavax.jms.Topic
- Throws:
javax.jms.JMSException
-
setTopicName
public void setTopicName(java.lang.String topicName)
-
toString
public java.lang.String toString()
Description copied from class:QueueImpl
Return a pretty printed version of the queue name
-
-