| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mq.Subscription
This class contains all the data needed to for a the provider to to determine if a message can be routed to a consumer.
| Field Summary | |
|  Object | clientConsumerThe client consumer | 
|  ConnectionToken | connectionTokenThe connection token | 
|  SpyDestination | destinationThe queue we want to subscribe to. | 
|  boolean | destroyDurableSubscriptionShould this message destroy the subscription? | 
|  String | messageSelectorThe selector which will filter out messages. | 
|  boolean | noLocalTopics might not want locally produced messages. | 
|  Selector | selectorThe message selector | 
|  int | subscriptionIdThis gets set to a unique value at the SpyConnection. | 
| Constructor Summary | |
| Subscription() | |
| Method Summary | |
|  boolean | accepts(SpyMessage.Header header)Determines the consumer would accept the message. | 
|  Selector | getSelector()Determines the consumer would accept the message. | 
|  Subscription | myClone()Clone the subscription | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public int subscriptionId
public SpyDestination destination
public String messageSelector
public boolean destroyDurableSubscription
public boolean noLocal
public transient Selector selector
public transient ConnectionToken connectionToken
public transient Object clientConsumer
| Constructor Detail | 
public Subscription()
| Method Detail | 
public Selector getSelector() throws javax.jms.InvalidSelectorException
javax.jms.InvalidSelectorException - for an invalid selectorpublic boolean accepts(SpyMessage.Header header) throws javax.jms.JMSException
header - the message header
javax.jms.JMSException - for any errorpublic Subscription myClone()
public String toString()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||