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.2 $ $Date: 2005/12/20 20:36:43 $
Author:
Jim Alateras
See Also:
JmsTemporaryTopic, JmsTemporaryQueue

Method Summary
 long getConnectionId()
          Return the identity of the owning connection
 org.exolab.jms.client.JmsConnection getOwningConnection()
          Return the connection that owns this temporary destination.
 boolean validForConnection(org.exolab.jms.client.JmsConnection connection)
          Checks whether the temporary destination is valid for the specified connection
 

Method Detail

getOwningConnection

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

getConnectionId

public long getConnectionId()
Return the identity of the owning connection
Returns:
the identity of the owning connection

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-2007 The OpenJMS Group. All Rights Reserved.