|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.SpyConnectionConsumer
public class SpyConnectionConsumer
This class implements javax.jms.ConnectionConsumer
| Constructor Summary | |
|---|---|
SpyConnectionConsumer(Connection connection,
javax.jms.Destination destination,
String messageSelector,
javax.jms.ServerSessionPool serverSessionPool,
int maxMessages)
SpyConnectionConsumer constructor |
|
| Method Summary | |
|---|---|
void |
addMessage(SpyMessage mes)
Add a message |
void |
close()
|
javax.jms.ServerSessionPool |
getServerSessionPool()
|
Subscription |
getSubscription()
Get the subscription |
void |
run()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpyConnectionConsumer(Connection connection,
javax.jms.Destination destination,
String messageSelector,
javax.jms.ServerSessionPool serverSessionPool,
int maxMessages)
throws javax.jms.JMSException
connection - the connectiondestination - destinationmessageSelector - the message selectorserverSessionPool - the server session poolmaxMessages - the maxmimum messages
javax.jms.JMSException - for any error| Method Detail |
|---|
public Subscription getSubscription()
getSubscription in interface SpyConsumer
public void addMessage(SpyMessage mes)
throws javax.jms.JMSException
addMessage in interface SpyConsumermes - the message
javax.jms.JMSException - for any error
public javax.jms.ServerSessionPool getServerSessionPool()
throws javax.jms.JMSException
getServerSessionPool in interface javax.jms.ConnectionConsumerjavax.jms.JMSException
public void close()
throws javax.jms.JMSException
close in interface javax.jms.ConnectionConsumerjavax.jms.JMSExceptionpublic void run()
run in interface Runnablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||