com.mockrunner.mock.jms
Class MockConnectionConsumer
java.lang.Object
com.mockrunner.mock.jms.MockConnectionConsumer
- All Implemented Interfaces:
- javax.jms.ConnectionConsumer
public class MockConnectionConsumer
- extends java.lang.Object
- implements javax.jms.ConnectionConsumer
Mock implementation of JMS ConnectionConsumer
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockConnectionConsumer
public MockConnectionConsumer(MockConnection connection,
javax.jms.ServerSessionPool serverSessionPool)
isClosed
public boolean isClosed()
- Returns if this connection consumer was closed.
- Returns:
true
if this connection consumer is closed
setServerSessionPool
public void setServerSessionPool(javax.jms.ServerSessionPool serverSessionPool)
getServerSessionPool
public javax.jms.ServerSessionPool getServerSessionPool()
throws javax.jms.JMSException
- Specified by:
getServerSessionPool
in interface javax.jms.ConnectionConsumer
- Throws:
javax.jms.JMSException
close
public void close()
throws javax.jms.JMSException
- Specified by:
close
in interface javax.jms.ConnectionConsumer
- Throws:
javax.jms.JMSException