public class MockQueueConnection extends MockConnection implements javax.jms.QueueConnection
QueueConnection.
Please note: The interfaces ConnectionConsumer,
ServerSessionPool and ServerSession
are not meant for application use. Mockrunner provides very
simple mock implementations but usually you won't need them.| Constructor and Description |
|---|
MockQueueConnection(DestinationManager destinationManager,
ConfigurationManager configurationManager) |
MockQueueConnection(DestinationManager destinationManager,
ConfigurationManager configurationManager,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.ConnectionConsumer |
createConnectionConsumer(javax.jms.Queue queue,
String messageSelector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages) |
javax.jms.QueueSession |
createQueueSession(boolean transacted,
int acknowledgeMode) |
javax.jms.Session |
createSession(boolean transacted,
int acknowledgeMode) |
MockQueueSession |
getQueueSession(int index)
Returns a
MockQueueSession that was created with
createQueueSession(boolean, int). |
List |
getQueueSessionList()
Returns the list of
MockQueueSession objects that were created
with createQueueSession(boolean, int). |
callExceptionListener, callExceptionListener, close, createConnectionConsumer, createDurableConnectionConsumer, getClientID, getConfigurationManager, getDestinationManager, getExceptionListener, getMetaData, getPassword, getSession, getSessionList, getUserName, isClosed, isStarted, isStopped, sessions, setClientID, setExceptionListener, setJMSException, setMetaData, start, stop, throwJMSExceptionpublic MockQueueConnection(DestinationManager destinationManager, ConfigurationManager configurationManager)
public MockQueueConnection(DestinationManager destinationManager, ConfigurationManager configurationManager, String userName, String password)
public List getQueueSessionList()
MockQueueSession objects that were created
with createQueueSession(boolean, int).public MockQueueSession getQueueSession(int index)
MockQueueSession that was created with
createQueueSession(boolean, int). If there's no such
MockQueueSession, null is returned.index - the index of the session objectpublic javax.jms.Session createSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
createSession in interface javax.jms.ConnectioncreateSession in class MockConnectionjavax.jms.JMSExceptionpublic javax.jms.QueueSession createQueueSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
createQueueSession in interface javax.jms.QueueConnectionjavax.jms.JMSExceptionpublic javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Queue queue,
String messageSelector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages)
throws javax.jms.JMSException
createConnectionConsumer in interface javax.jms.QueueConnectionjavax.jms.JMSExceptionCopyright © 2003–2020. All rights reserved.