|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.jms.GenericTransmissionManager
public class GenericTransmissionManager
This class is used to create generic producers that are not
associated with a destination.
If you create a MessageProducer
with a null
destination, this class is used to create a MessageProducer
which is not associated with any destination.
If the session used to create the producer is a QueueSession
,
you'll get a QueueSender
. For a TopicSession
,
you'll get a TopicPublisher
. For a generic session,
you'll get a generic instance of MessageProducer
.
Constructor Summary | |
---|---|
GenericTransmissionManager(MockConnection connection,
MockSession session)
|
Method Summary | |
---|---|
void |
closeAll()
Closes all producers. |
void |
closeAllMessageProducers()
Closes all producers. |
MockMessageProducer |
createMessageProducer()
Creates a new MessageProducer . |
MockQueueSender |
createQueueSender()
Creates a new QueueSender . |
MockTopicPublisher |
createTopicPublisher()
Creates a new TopicPublisher . |
MockMessageProducer |
getMessageProducer(int index)
Returns a MessageProducer by its index or
null , if no such MessageProducer is
present. |
java.util.List |
getMessageProducerList()
Returns the list of all MessageProducer objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericTransmissionManager(MockConnection connection, MockSession session)
Method Detail |
---|
public void closeAll()
public void closeAllMessageProducers()
public MockMessageProducer createMessageProducer()
MessageProducer
.
MessageProducer
public MockQueueSender createQueueSender()
QueueSender
.
QueueSender
public MockTopicPublisher createTopicPublisher()
TopicPublisher
.
TopicPublisher
public MockMessageProducer getMessageProducer(int index)
MessageProducer
by its index or
null
, if no such MessageProducer
is
present.
index
- the index of the MessageProducer
MessageProducer
public java.util.List getMessageProducerList()
MessageProducer
objects.
MessageProducer
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |