org.exolab.jms.client
Class JmsTemporaryTopic
java.lang.Object
|
+--org.exolab.jms.message.DestinationImpl
|
+--org.exolab.jms.client.JmsDestination
|
+--org.exolab.jms.client.JmsTopic
|
+--org.exolab.jms.client.JmsTemporaryTopic
- All Implemented Interfaces:
- java.lang.Cloneable, javax.jms.Destination, java.io.Externalizable, JmsTemporaryDestination, javax.naming.Referenceable, java.io.Serializable, javax.jms.TemporaryTopic, javax.jms.Topic
- public class JmsTemporaryTopic
- extends JmsTopic
- implements javax.jms.TemporaryTopic, JmsTemporaryDestination, java.io.Externalizable, javax.naming.Referenceable
A temporary topic is created by a client through a session and has
a lifetime of the session's connection.
- Version:
- $Revision: 1.2 $ $Date: 2005/12/20 20:36:43 $
- Author:
- Jim Alateras
- See Also:
- Serialized Form
Method Summary |
static javax.jms.TemporaryTopic |
create(org.exolab.jms.client.JmsConnection connection)
Construct a new temporary topic. |
void |
delete()
|
long |
getConnectionId()
Return the identity of the owning connection |
org.exolab.jms.client.JmsConnection |
getOwningConnection()
Return the connection that owns this temporary destination. |
javax.naming.Reference |
getReference()
|
void |
readExternal(java.io.ObjectInput stream)
|
boolean |
validForConnection(org.exolab.jms.client.JmsConnection connection)
Checks whether the temporary destination is valid for the specified
connection |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Topic |
getTopicName, toString |
JmsTemporaryTopic
public JmsTemporaryTopic()
- Constructor provided for serialization.
delete
public void delete()
throws javax.jms.JMSException
- Specified by:
delete
in interface javax.jms.TemporaryTopic
getOwningConnection
public org.exolab.jms.client.JmsConnection getOwningConnection()
- Description copied from interface:
JmsTemporaryDestination
- Return the connection that owns this temporary destination.
- Specified by:
getOwningConnection
in interface JmsTemporaryDestination
- Following copied from interface:
org.exolab.jms.client.JmsTemporaryDestination
- Returns:
- JmsConnection
getConnectionId
public long getConnectionId()
- Description copied from interface:
JmsTemporaryDestination
- Return the identity of the owning connection
- Specified by:
getConnectionId
in interface JmsTemporaryDestination
- Following copied from interface:
org.exolab.jms.client.JmsTemporaryDestination
- Returns:
- the identity of the owning connection
validForConnection
public boolean validForConnection(org.exolab.jms.client.JmsConnection connection)
- Description copied from interface:
JmsTemporaryDestination
- Checks whether the temporary destination is valid for the specified
connection
- Specified by:
validForConnection
in interface JmsTemporaryDestination
- Following copied from interface:
org.exolab.jms.client.JmsTemporaryDestination
- Parameters:
connection
- - the connection to test against- Returns:
- boolean - true if it can be used.
getReference
public javax.naming.Reference getReference()
- Specified by:
getReference
in interface javax.naming.Referenceable
- Overrides:
getReference
in class JmsTopic
writeExternal
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class JmsTopic
readExternal
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class JmsTopic
create
public static javax.jms.TemporaryTopic create(org.exolab.jms.client.JmsConnection connection)
- Construct a new temporary topic.
- Parameters:
connection
- the connection owns that the topic- Returns:
- a new temporary topic
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.