jrun.jms.core.client
Class JmsTemporaryQueue
jrun.jms.core.client.JmsTemporaryQueue
- All Implemented Interfaces:
- java.io.Externalizable, JmsTemporaryDestination, javax.naming.Referenceable, java.io.Serializable
- public class JmsTemporaryQueue
- implements JmsTemporaryDestination, java.io.Externalizable, javax.naming.Referenceable
A temporary queue is created by a client through a session and has
a lifetime of the session's connection.
- Version:
- $Revision: 1.6 $ $Date: 2001/10/16 03:22:12 $
- Author:
- Jim Alateras
- See Also:
- Serialized Form
|
Constructor Summary |
JmsTemporaryQueue()
Need a default constructor for the serialization |
JmsTemporaryQueue
public JmsTemporaryQueue()
- Need a default constructor for the serialization
delete
public void delete()
throws javax.jms.JMSException
setOwningConnection
public void setOwningConnection(JmsConnection connection)
- Description copied from interface:
JmsTemporaryDestination
- Set the connection that owns this temp destination. This destination is
scoped by this connection and cannot be used outside of this scope
- Specified by:
setOwningConnection in interface JmsTemporaryDestination
- Following copied from interface:
jrun.jms.core.client.JmsTemporaryDestination
- Parameters:
connection -
getOwningConnection
public 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:
jrun.jms.core.client.JmsTemporaryDestination
- Returns:
- JmsConnection
getConnectionId
public java.lang.String getConnectionId()
- Description copied from interface:
JmsTemporaryDestination
- Return the identity of the owning connection as a string
- Specified by:
getConnectionId in interface JmsTemporaryDestination
- Following copied from interface:
jrun.jms.core.client.JmsTemporaryDestination
- Returns:
- String
getReference
public javax.naming.Reference getReference()
- Specified by:
getReference in interface javax.naming.Referenceable
validForConnection
public boolean validForConnection(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:
jrun.jms.core.client.JmsTemporaryDestination
- Parameters:
connection - - the connection to test against- Returns:
- boolean - true if it can be used.
writeExternal
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
Copyright � 2002 Macromedia Corporation. All Rights Reserved.