jrun.jms.core.client
Interface JmsTemporaryDestination

All Known Implementing Classes:
JmsTemporaryTopic, JmsTemporaryQueue

public interface JmsTemporaryDestination

This is an interface for all temporary destinations. All temporary destinations are scoped by the connection

Version:
$Revision: 1.2 $ $Date: 2001/10/16 03:22:12 $
Author:
Jim Alateras
See Also:
org.exolab.jms.client.TemporaryTopic, org.exolab.jms.client.TemporaryQueue

Method Summary
 java.lang.String getConnectionId()
          Return the identity of the owning connection as a string
 JmsConnection getOwningConnection()
          Return the connection that owns this temporary destination.
 void setOwningConnection(JmsConnection connection)
          Set the connection that owns this temp destination.
 boolean validForConnection(JmsConnection connection)
          Checks whether the temporary destination is valid for the specified connection
 

Method Detail

setOwningConnection

public void setOwningConnection(JmsConnection connection)
Set the connection that owns this temp destination. This destination is scoped by this connection and cannot be used outside of this scope
Parameters:
connection -  

getOwningConnection

public JmsConnection getOwningConnection()
Return the connection that owns this temporary destination.
Returns:
JmsConnection

getConnectionId

public java.lang.String getConnectionId()
Return the identity of the owning connection as a string
Returns:
String

validForConnection

public boolean validForConnection(JmsConnection connection)
Checks whether the temporary destination is valid for the specified connection
Parameters:
connection - - the connection to test against
Returns:
boolean - true if it can be used.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.