|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tools.migration.proxy.Consumer
Manages the state of an individual consumer.
Constructor Summary | |
Consumer(org.exolab.jms.client.JmsQueue queue)
Construct a new Consumer for a queue. |
|
Consumer(java.lang.String name,
java.lang.String clientId)
Construct a new Consumer for one or more topics. |
Method Summary | |
void |
addSubscription(Subscription subscription)
Add a subscription. |
java.lang.String |
getClientID()
Returns the client identifier. |
java.lang.String |
getName()
Returns the consumer name. |
java.util.List |
getSubscriptions()
Returns the subscriptions. |
boolean |
isQueueConsumer()
Determines if this is a queue consumer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Consumer(org.exolab.jms.client.JmsQueue queue)
Consumer
for a queue.queue
- the queuepublic Consumer(java.lang.String name, java.lang.String clientId)
Consumer
for one or more topics.name
- the name of the consumerclientId
- the client identifier. May be null
Method Detail |
public java.lang.String getName()
public java.lang.String getClientID()
null
.null
public boolean isQueueConsumer()
true
if this is a queue consumer; otherwise
false
public void addSubscription(Subscription subscription)
subscription
- the subscriptionpublic java.util.List getSubscriptions()
Subscription
instances
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |