|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockrunner.jms.QueueTransmissionManager
public class QueueTransmissionManager
This class is used to create queue senders and receivers. It can be also used to access all created classes in tests.
| Constructor Summary | |
|---|---|
QueueTransmissionManager(MockConnection connection,
MockSession session)
|
|
| Method Summary | |
|---|---|
void |
closeAll()
Closes all senders, receivers, browsers, publishers and subscribers. |
void |
closeAllQueueBrowsers()
Closes all queue browsers. |
void |
closeAllQueueReceivers()
Closes all queue receivers. |
void |
closeAllQueueSenders()
Closes all queue senders. |
MockQueueBrowser |
createQueueBrowser(MockQueue queue,
java.lang.String messageSelector)
Creates a new QueueBrowser for the specified
Queue. |
MockQueueReceiver |
createQueueReceiver(MockQueue queue,
java.lang.String messageSelector)
Creates a new QueueReceiver for the specified
Queue. |
MockQueueSender |
createQueueSender(MockQueue queue)
Creates a new QueueSender for the specified
Queue. |
MockQueueBrowser |
getQueueBrowser(int index)
Returns a QueueBrowser by its index or
null, if no such QueueBrowser is
present. |
MockQueueBrowser |
getQueueBrowser(java.lang.String queueName)
Returns a QueueBrowser by the name of its
corresponding Queue. |
java.util.List |
getQueueBrowserList()
Returns the list of QueueBrowser objects. |
java.util.List |
getQueueBrowserList(java.lang.String queueName)
Returns the list of the QueueBrowser objects
for a specific Queue. |
MockQueueReceiver |
getQueueReceiver(int index)
Returns a QueueReceiver by its index or
null, if no such QueueReceiver is
present. |
MockQueueReceiver |
getQueueReceiver(java.lang.String queueName)
Returns a QueueReceiver by the name of its
corresponding Queue. |
java.util.List |
getQueueReceiverList()
Returns the list of QueueReceiver objects. |
java.util.List |
getQueueReceiverList(java.lang.String queueName)
Returns the list of the QueueReceiver objects
for a specific Queue. |
MockQueueSender |
getQueueSender(int index)
Returns a QueueSender by its index or
null, if no such QueueSender is
present. |
MockQueueSender |
getQueueSender(java.lang.String queueName)
Returns a QueueSender by the name of its
corresponding Queue. |
java.util.List |
getQueueSenderList()
Returns the list of all QueueSender objects. |
java.util.List |
getQueueSenderList(java.lang.String queueName)
Returns the list of the QueueSender objects
for a specific Queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueTransmissionManager(MockConnection connection,
MockSession session)
| Method Detail |
|---|
public void closeAll()
public void closeAllQueueSenders()
public void closeAllQueueReceivers()
public void closeAllQueueBrowsers()
public MockQueueSender createQueueSender(MockQueue queue)
QueueSender for the specified
Queue. Usually this method is called
by MockQueueSession.createSender(javax.jms.Queue).
queue - the Queue
QueueSenderpublic MockQueueSender getQueueSender(int index)
QueueSender by its index or
null, if no such QueueSender is
present.
index - the index of the QueueSender
QueueSenderpublic MockQueueSender getQueueSender(java.lang.String queueName)
QueueSender by the name of its
corresponding Queue. If there's more than
one QueueSender object for the specified name,
the first one will be returned.
queueName - the name of the Queue
QueueSenderpublic java.util.List getQueueSenderList(java.lang.String queueName)
QueueSender objects
for a specific Queue.
queueName - the name of the Queue
QueueSender objectspublic java.util.List getQueueSenderList()
QueueSender objects.
QueueSender objects
public MockQueueReceiver createQueueReceiver(MockQueue queue,
java.lang.String messageSelector)
QueueReceiver for the specified
Queue. Usually this method is called
by MockQueueSession.createReceiver(javax.jms.Queue).
queue - the QueuemessageSelector - the message selector
QueueReceiverpublic MockQueueReceiver getQueueReceiver(int index)
QueueReceiver by its index or
null, if no such QueueReceiver is
present.
index - the index of the QueueReceiver
QueueReceiverpublic MockQueueReceiver getQueueReceiver(java.lang.String queueName)
QueueReceiver by the name of its
corresponding Queue. If there's more than
one QueueReceiver object for the specified name,
the first one will be returned.
queueName - the name of the Queue
QueueReceiverpublic java.util.List getQueueReceiverList(java.lang.String queueName)
QueueReceiver objects
for a specific Queue.
queueName - the name of the Queue
QueueReceiver objectspublic java.util.List getQueueReceiverList()
QueueReceiver objects.
QueueReceiver list
public MockQueueBrowser createQueueBrowser(MockQueue queue,
java.lang.String messageSelector)
QueueBrowser for the specified
Queue. Usually this method is called
by MockSession.createBrowser(javax.jms.Queue).
queue - the QueuemessageSelector - the message selector
QueueBrowserpublic MockQueueBrowser getQueueBrowser(int index)
QueueBrowser by its index or
null, if no such QueueBrowser is
present.
index - the index of the QueueBrowser
QueueBrowserpublic MockQueueBrowser getQueueBrowser(java.lang.String queueName)
QueueBrowser by the name of its
corresponding Queue. If there's more than
one QueueBrowser object for the specified name,
the first one will be returned.
queueName - the name of the Queue
QueueBrowserpublic java.util.List getQueueBrowserList(java.lang.String queueName)
QueueBrowser objects
for a specific Queue.
queueName - the name of the Queue
QueueBrowser objectspublic java.util.List getQueueBrowserList()
QueueBrowser objects.
QueueBrowser list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||