org.exolab.jms.tools.migration.proxy
Class Subscription

java.lang.Object
  |
  +--org.exolab.jms.tools.migration.proxy.Subscription

public class Subscription
extends java.lang.Object

Maintains the state of a consumer's subcription to a single destination.

Version:
$Revision: 1.1 $ $Date: 2005/09/04 07:07:12 $
Author:
Tim Anderson

Constructor Summary
Subscription(org.exolab.jms.client.JmsDestination destination)
          Construct a new Subscription
 
Method Summary
 void addMessage(java.lang.String messageId, boolean delivered)
          Add a reference to a message.
 org.exolab.jms.client.JmsDestination getDestination()
          Returns the destination being subscribed to.
 java.util.List getMessages()
          Returns the messages that the subscription references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription(org.exolab.jms.client.JmsDestination destination)
Construct a new Subscription
Parameters:
destination - the destination being subscribed to
Method Detail

getDestination

public org.exolab.jms.client.JmsDestination getDestination()
Returns the destination being subscribed to.
Returns:
the destination

addMessage

public void addMessage(java.lang.String messageId,
                       boolean delivered)
Add a reference to a message.
Parameters:
messageId - the message identifier
delivered - determines if the message has been delivered or not

getMessages

public java.util.List getMessages()
Returns the messages that the subscription references.
Returns:
a list of MessageState instances


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.