|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.Subscription
public class 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 |
clientConsumer
The client consumer |
ConnectionToken |
connectionToken
The connection token |
SpyDestination |
destination
The queue we want to subscribe to. |
boolean |
destroyDurableSubscription
Should this message destroy the subscription? |
String |
messageSelector
The selector which will filter out messages. |
boolean |
noLocal
Topics might not want locally produced messages. |
Selector |
selector
The message selector |
int |
subscriptionId
This 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 selector
public boolean accepts(SpyMessage.Header header)
throws javax.jms.JMSException
header - the message header
javax.jms.JMSException - for any errorpublic Subscription myClone()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||