public class QueueTransmissionManager extends Object implements Serializable
| Constructor and Description |
|---|
QueueTransmissionManager(MockConnection connection,
MockSession session) |
| Modifier and Type | Method and Description |
|---|---|
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,
String messageSelector)
Creates a new
QueueBrowser for the specified
Queue. |
MockQueueReceiver |
createQueueReceiver(MockQueue queue,
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(String queueName)
Returns a
QueueBrowser by the name of its
corresponding Queue. |
List |
getQueueBrowserList()
Returns the list of
QueueBrowser objects. |
List |
getQueueBrowserList(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(String queueName)
Returns a
QueueReceiver by the name of its
corresponding Queue. |
List |
getQueueReceiverList()
Returns the list of
QueueReceiver objects. |
List |
getQueueReceiverList(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(String queueName)
Returns a
QueueSender by the name of its
corresponding Queue. |
List |
getQueueSenderList()
Returns the list of all
QueueSender objects. |
List |
getQueueSenderList(String queueName)
Returns the list of the
QueueSender objects
for a specific Queue. |
public QueueTransmissionManager(MockConnection connection, MockSession session)
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 QueueQueueSenderpublic MockQueueSender getQueueSender(int index)
QueueSender by its index or
null, if no such QueueSender is
present.index - the index of the QueueSenderQueueSenderpublic MockQueueSender getQueueSender(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 QueueQueueSenderpublic List getQueueSenderList(String queueName)
QueueSender objects
for a specific Queue.queueName - the name of the QueueQueueSender objectspublic List getQueueSenderList()
QueueSender objects.QueueSender objectspublic MockQueueReceiver createQueueReceiver(MockQueue queue, String messageSelector)
QueueReceiver for the specified
Queue. Usually this method is called
by MockQueueSession.createReceiver(javax.jms.Queue).queue - the QueuemessageSelector - the message selectorQueueReceiverpublic MockQueueReceiver getQueueReceiver(int index)
QueueReceiver by its index or
null, if no such QueueReceiver is
present.index - the index of the QueueReceiverQueueReceiverpublic MockQueueReceiver getQueueReceiver(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 QueueQueueReceiverpublic List getQueueReceiverList(String queueName)
QueueReceiver objects
for a specific Queue.queueName - the name of the QueueQueueReceiver objectspublic List getQueueReceiverList()
QueueReceiver objects.QueueReceiver listpublic MockQueueBrowser createQueueBrowser(MockQueue queue, String messageSelector)
QueueBrowser for the specified
Queue. Usually this method is called
by MockSession.createBrowser(javax.jms.Queue).queue - the QueuemessageSelector - the message selectorQueueBrowserpublic MockQueueBrowser getQueueBrowser(int index)
QueueBrowser by its index or
null, if no such QueueBrowser is
present.index - the index of the QueueBrowserQueueBrowserpublic MockQueueBrowser getQueueBrowser(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 QueueQueueBrowserpublic List getQueueBrowserList(String queueName)
QueueBrowser objects
for a specific Queue.queueName - the name of the QueueQueueBrowser objectspublic List getQueueBrowserList()
QueueBrowser objects.QueueBrowser listCopyright © 2003–2020. All rights reserved.