|
||||||||||
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 errorMethod Detail |
---|
public Subscription getSubscription()
getSubscription
in interface SpyConsumer
public void addMessage(SpyMessage mes) throws javax.jms.JMSException
addMessage
in interface SpyConsumer
mes
- the message
javax.jms.JMSException
- for any errorpublic javax.jms.ServerSessionPool getServerSessionPool() throws javax.jms.JMSException
getServerSessionPool
in interface javax.jms.ConnectionConsumer
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.ConnectionConsumer
javax.jms.JMSException
public void run()
run
in interface Runnable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |