|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.client.JBossConnectionConsumer
This class implements javax.jms.ConnectionConsumer
Field Summary | |
protected boolean |
closed
Is the ConnectionConsumer closed? |
protected java.lang.Object |
closeLock
|
protected ConsumerDelegate |
cons
|
protected int |
consumerID
|
protected Destination |
destination
The destination this consumer will receive messages from |
protected int |
id
The thread id |
protected java.lang.Thread |
internalThread
The "listening" thread that gets messages from destination and queues them for delivery to sessions |
protected int |
maxDeliveries
|
protected int |
maxMessages
The maximum number of messages that a single session will be loaded with. |
protected ServerSessionPool |
serverSessionPool
The ServerSessionPool that is implemented by the AS |
protected SessionDelegate |
sess
|
protected static SynchronizedInt |
threadId
The thread id generator |
Constructor Summary | |
JBossConnectionConsumer(ConnectionDelegate conn,
JBossDestination dest,
java.lang.String subName,
java.lang.String messageSelector,
ServerSessionPool sessPool,
int maxMessages)
JBossConnectionConsumer constructor |
Method Summary | |
void |
close()
|
protected void |
doClose()
|
ServerSessionPool |
getServerSessionPool()
|
void |
run()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ConsumerDelegate cons
protected SessionDelegate sess
protected int consumerID
protected Destination destination
protected ServerSessionPool serverSessionPool
protected int maxMessages
protected volatile boolean closed
protected java.lang.Thread internalThread
protected int id
protected static SynchronizedInt threadId
protected java.lang.Object closeLock
protected int maxDeliveries
Constructor Detail |
public JBossConnectionConsumer(ConnectionDelegate conn, JBossDestination dest, java.lang.String subName, java.lang.String messageSelector, ServerSessionPool sessPool, int maxMessages) throws JMSException
conn
- the connectiondest
- destinationmessageSelector
- the message selectorsessPool
- the server session poolmaxMessages
- the maxmimum messages
JMSException
- for any errorMethod Detail |
public ServerSessionPool getServerSessionPool() throws JMSException
JMSException
public void close() throws JMSException
JMSException
public void run()
run
in interface java.lang.Runnable
protected void doClose() throws JMSException
JMSException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |