|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.SpyConnectionConsumer
This class implements javax.jms.ConnectionConsumer
Constructor Summary | |
SpyConnectionConsumer(Connection (src) connection,
Destination (src) destination,
java.lang.String messageSelector,
ServerSessionPool (src) serverSessionPool,
int maxMessages)
SpyConnectionConsumer constructor |
Method Summary | |
void |
addMessage(SpyMessage (src) mes)
Add a message |
void |
close()
Closes the connection consumer. |
ServerSessionPool (src) |
getServerSessionPool()
Gets the server session pool associated with this connection consumer. |
Subscription (src) |
getSubscription()
Get the subscription |
void |
run()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SpyConnectionConsumer(Connection (src) connection, Destination (src) destination, java.lang.String messageSelector, ServerSessionPool (src) serverSessionPool, int maxMessages) throws JMSException (src)
connection
- the connectiondestination
- destinationmessageSelector
- the message selectorserverSessionPool
- the server session poolmaxMessages
- the maxmimum messages
JMSException (src)
- for any errorMethod Detail |
public Subscription (src) getSubscription()
getSubscription
in interface SpyConsumer (src)
public void addMessage(SpyMessage (src) mes) throws JMSException (src)
addMessage
in interface SpyConsumer (src)
mes
- the message
JMSException (src)
- for any errorpublic ServerSessionPool (src) getServerSessionPool() throws JMSException (src)
ConnectionConsumer (src)
getServerSessionPool
in interface ConnectionConsumer (src)
JMSException (src)
- if the JMS provider fails to get the server
session pool associated with this consumer due
to some internal error.public void close() throws JMSException (src)
ConnectionConsumer (src)
Since a provider may allocate some resources on behalf of a connection consumer outside the Java virtual machine, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
close
in interface ConnectionConsumer (src)
JMSException (src)
- if the JMS provider fails to release resources
on behalf of the connection consumer or fails
to close the connection consumer.public void run()
run
in interface java.lang.Runnable
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |