public class TransmissionManagerWrapper extends Object implements Serializable
QueueTransmissionManager and
TopicTransmissionManager and GenericTransmissionManager.
Can be used to access all senders, publishers, receivers and subscribers
transparently.| Constructor and Description |
|---|
TransmissionManagerWrapper(QueueTransmissionManager queueManager,
TopicTransmissionManager topicManager,
GenericTransmissionManager genericManager) |
| Modifier and Type | Method and Description |
|---|---|
GenericTransmissionManager |
getGenericTransmissionManager()
Returns the underlying
GenericTransmissionManager. |
MockMessageConsumer |
getMessageConsumer(int index)
Returns the
MockMessageConsumer object
with the specified index or null, if no such
MockMessageConsumer exists. |
List |
getMessageConsumerList()
Returns a list of all consumer objects.
|
MockMessageProducer |
getMessageProducer(int index)
Returns the
MockMessageProducer object
with the specified index or null, if no such
MockMessageProducer exists. |
List |
getMessageProducerList()
Returns a list of all producer objects.
|
MockQueueSender |
getQueueSender(int index)
Returns the
MockQueueSender object
with the specified index or null, if no such
MockQueueSender exists. |
List |
getQueueSenderList()
Returns a list of all queue senders, i.e.
|
QueueTransmissionManager |
getQueueTransmissionManager()
Returns the underlying
QueueTransmissionManager. |
MockTopicPublisher |
getTopicPublisher(int index)
Returns the
MockTopicPublisher object
with the specified index or null, if no such
MockTopicPublisher exists. |
List |
getTopicPublisherList()
Returns a list of all topic publishers, i.e.
|
TopicTransmissionManager |
getTopicTransmissionManager()
Returns the underlying
TopicTransmissionManager. |
public TransmissionManagerWrapper(QueueTransmissionManager queueManager, TopicTransmissionManager topicManager, GenericTransmissionManager genericManager)
public QueueTransmissionManager getQueueTransmissionManager()
QueueTransmissionManager.QueueTransmissionManagerpublic TopicTransmissionManager getTopicTransmissionManager()
TopicTransmissionManager.TopicTransmissionManagerpublic GenericTransmissionManager getGenericTransmissionManager()
GenericTransmissionManager.GenericTransmissionManagerpublic MockMessageProducer getMessageProducer(int index)
MockMessageProducer object
with the specified index or null, if no such
MockMessageProducer exists.index - the indexMockMessageProducer objectpublic List getMessageProducerList()
MockMessageProducer objectspublic List getQueueSenderList()
QueueSender. In
contrast to QueueTransmissionManager.getQueueSenderList(java.lang.String),
this methods also includes the senders that were created without
specifying an explicit queue (these senders are collected using
GenericTransmissionManager).MockQueueSender objectspublic MockQueueSender getQueueSender(int index)
MockQueueSender object
with the specified index or null, if no such
MockQueueSender exists.
In contrast to QueueTransmissionManager.getQueueSender(int),
this methods also recognizes the senders that were created without
specifying an explicit queue (these senders are collected using
GenericTransmissionManager).index - the indexMockQueueSender objectpublic List getTopicPublisherList()
TopicPublisher. In
contrast to TopicTransmissionManager.getTopicPublisherList(java.lang.String),
this methods also includes the publishers that were created without
specifying an explicit topic (these publishers are collected using
GenericTransmissionManager).MockTopicPublisher objectspublic MockTopicPublisher getTopicPublisher(int index)
MockTopicPublisher object
with the specified index or null, if no such
MockTopicPublisher exists.
In contrast to TopicTransmissionManager.getTopicPublisher(int),
this methods also recognizes the publishers that were created without
specifying an explicit queue (these publishers are collected using
GenericTransmissionManager).index - the indexMockTopicPublisher objectpublic MockMessageConsumer getMessageConsumer(int index)
MockMessageConsumer object
with the specified index or null, if no such
MockMessageConsumer exists.index - the indexMockMessageConsumer objectpublic List getMessageConsumerList()
MockMessageConsumer objectsCopyright © 2003–2020. All rights reserved.