|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.jms.TransmissionManagerWrapper
public class TransmissionManagerWrapper
A wrapper around QueueTransmissionManager
and
TopicTransmissionManager
and GenericTransmissionManager
.
Can be used to access all senders, publishers, receivers and subscribers
transparently.
Constructor Summary | |
---|---|
TransmissionManagerWrapper(QueueTransmissionManager queueManager,
TopicTransmissionManager topicManager,
GenericTransmissionManager genericManager)
|
Method Summary | |
---|---|
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. |
java.util.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. |
java.util.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. |
java.util.List |
getQueueSenderList()
Returns a list of all queue senders, i.e. all producer objects, that are an instance of QueueSender . |
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. |
java.util.List |
getTopicPublisherList()
Returns a list of all topic publishers, i.e. all producer objects, that are an instance of TopicPublisher . |
TopicTransmissionManager |
getTopicTransmissionManager()
Returns the underlying TopicTransmissionManager . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransmissionManagerWrapper(QueueTransmissionManager queueManager, TopicTransmissionManager topicManager, GenericTransmissionManager genericManager)
Method Detail |
---|
public QueueTransmissionManager getQueueTransmissionManager()
QueueTransmissionManager
.
QueueTransmissionManager
public TopicTransmissionManager getTopicTransmissionManager()
TopicTransmissionManager
.
TopicTransmissionManager
public GenericTransmissionManager getGenericTransmissionManager()
GenericTransmissionManager
.
GenericTransmissionManager
public MockMessageProducer getMessageProducer(int index)
MockMessageProducer
object
with the specified index or null
, if no such
MockMessageProducer
exists.
index
- the index
MockMessageProducer
objectpublic java.util.List getMessageProducerList()
MockMessageProducer
objectspublic java.util.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 index
MockQueueSender
objectpublic java.util.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 index
MockTopicPublisher
objectpublic MockMessageConsumer getMessageConsumer(int index)
MockMessageConsumer
object
with the specified index or null
, if no such
MockMessageConsumer
exists.
index
- the index
MockMessageConsumer
objectpublic java.util.List getMessageConsumerList()
MockMessageConsumer
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |