| java.lang.Object org.jboss.mq.SpyConnectionConsumer
SpyConnectionConsumer | public class SpyConnectionConsumer implements ConnectionConsumer,SpyConsumer,Runnable(Code) | | This class implements javax.jms.ConnectionConsumer
author: Hiram Chirino (Cojonudo14@hotmail.com) author: Adrian Brock version: $Revision: 62240 $ |
closed | boolean closed(Code) | | Is the ConnectionConsumer closed?
|
connection | Connection connection(Code) | | The connection is the consumer was created with
|
destination | Destination destination(Code) | | The destination this consumer will receive messages from
|
internalThread | Thread internalThread(Code) | | The "listening" thread that gets messages from destination and queues
them for delivery to sessions
|
log | static Logger log(Code) | | The log
|
maxMessages | int maxMessages(Code) | | The maximum number of messages that a single session will be loaded with.
|
queue | LinkedList queue(Code) | | This queue will hold messages until they are dispatched to the
MessageListener
|
serverSessionPool | javax.jms.ServerSessionPool serverSessionPool(Code) | | The ServerSessionPool that is implemented by the AS
|
threadId | static SynchronizedInt threadId(Code) | | The thread id generator
|
trace | static boolean trace(Code) | | Whether trace is enabled
|
waitingForMessage | boolean waitingForMessage(Code) | | Whether we are waiting for a message
|
SpyConnectionConsumer | public SpyConnectionConsumer(Connection connection, Destination destination, String messageSelector, ServerSessionPool serverSessionPool, int maxMessages) throws JMSException(Code) | | SpyConnectionConsumer constructor
Parameters: connection - the connection Parameters: destination - destination Parameters: messageSelector - the message selector Parameters: serverSessionPool - the server session pool Parameters: maxMessages - the maxmimum messages exception: JMSException - for any error |
addMessage | public void addMessage(SpyMessage mes) throws JMSException(Code) | | Add a message
throws: JMSException - for any error |
close | public void close() throws javax.jms.JMSException(Code) | | |
getServerSessionPool | public ServerSessionPool getServerSessionPool() throws JMSException(Code) | | |
getSubscription | public Subscription getSubscription()(Code) | | Get the subscription
the subscription |
|
|