com.mockrunner.mock.jms
Class MockConnectionConsumer

java.lang.Object
  extended by 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.


Constructor Summary
MockConnectionConsumer(MockConnection connection, javax.jms.ServerSessionPool serverSessionPool)
           
 
Method Summary
 void close()
           
 javax.jms.ServerSessionPool getServerSessionPool()
           
 boolean isClosed()
          Returns if this connection consumer was closed.
 void setServerSessionPool(javax.jms.ServerSessionPool serverSessionPool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockConnectionConsumer

public MockConnectionConsumer(MockConnection connection,
                              javax.jms.ServerSessionPool serverSessionPool)
Method Detail

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