org.exolab.jms.client
Interface JmsTemporaryDestination

All Known Implementing Classes:
JmsTemporaryQueue, JmsTemporaryTopic

public interface JmsTemporaryDestination

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

Version:
$Revision: 1.4 $ $Date: 2003/08/17 01:32:21 $
Author:
Jim Alateras
See Also:
JmsTemporaryTopic, JmsTemporaryQueue

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

Method Detail

setOwningConnection

public void setOwningConnection(org.exolab.jms.client.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 org.exolab.jms.client.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(org.exolab.jms.client.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 © 1999-2004 The OpenJMS Group. All Rights Reserved.