ch.qos.logback.classic.net.mock
Class MockQueueConnection

java.lang.Object
  extended by ch.qos.logback.classic.net.mock.MockQueueConnection
All Implemented Interfaces:
javax.jms.Connection, javax.jms.QueueConnection

public class MockQueueConnection
extends Object
implements javax.jms.QueueConnection


Constructor Summary
MockQueueConnection()
           
 
Method Summary
 void close()
           
 javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination arg0, String arg1, javax.jms.ServerSessionPool arg2, int arg3)
           
 javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Queue arg0, String arg1, javax.jms.ServerSessionPool arg2, int arg3)
           
 javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic arg0, String arg1, String arg2, javax.jms.ServerSessionPool arg3, int arg4)
           
 javax.jms.QueueSession createQueueSession(boolean arg0, int arg1)
           
 javax.jms.Session createSession(boolean arg0, int arg1)
           
 String getClientID()
           
 javax.jms.ExceptionListener getExceptionListener()
           
 javax.jms.ConnectionMetaData getMetaData()
           
 void setClientID(String arg0)
           
 void setExceptionListener(javax.jms.ExceptionListener arg0)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockQueueConnection

public MockQueueConnection()
Method Detail

createQueueSession

public javax.jms.QueueSession createQueueSession(boolean arg0,
                                                 int arg1)
                                          throws javax.jms.JMSException
Specified by:
createQueueSession in interface javax.jms.QueueConnection
Throws:
javax.jms.JMSException

createConnectionConsumer

public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Queue arg0,
                                                             String arg1,
                                                             javax.jms.ServerSessionPool arg2,
                                                             int arg3)
                                                      throws javax.jms.JMSException
Specified by:
createConnectionConsumer in interface javax.jms.QueueConnection
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.Connection
Throws:
javax.jms.JMSException

createConnectionConsumer

public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination arg0,
                                                             String arg1,
                                                             javax.jms.ServerSessionPool arg2,
                                                             int arg3)
                                                      throws javax.jms.JMSException
Specified by:
createConnectionConsumer in interface javax.jms.Connection
Throws:
javax.jms.JMSException

createDurableConnectionConsumer

public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic arg0,
                                                                    String arg1,
                                                                    String arg2,
                                                                    javax.jms.ServerSessionPool arg3,
                                                                    int arg4)
                                                             throws javax.jms.JMSException
Specified by:
createDurableConnectionConsumer in interface javax.jms.Connection
Throws:
javax.jms.JMSException

createSession

public javax.jms.Session createSession(boolean arg0,
                                       int arg1)
                                throws javax.jms.JMSException
Specified by:
createSession in interface javax.jms.Connection
Throws:
javax.jms.JMSException

getClientID

public String getClientID()
                   throws javax.jms.JMSException
Specified by:
getClientID in interface javax.jms.Connection
Throws:
javax.jms.JMSException

getExceptionListener

public javax.jms.ExceptionListener getExceptionListener()
                                                 throws javax.jms.JMSException
Specified by:
getExceptionListener in interface javax.jms.Connection
Throws:
javax.jms.JMSException

getMetaData

public javax.jms.ConnectionMetaData getMetaData()
                                         throws javax.jms.JMSException
Specified by:
getMetaData in interface javax.jms.Connection
Throws:
javax.jms.JMSException

setClientID

public void setClientID(String arg0)
                 throws javax.jms.JMSException
Specified by:
setClientID in interface javax.jms.Connection
Throws:
javax.jms.JMSException

setExceptionListener

public void setExceptionListener(javax.jms.ExceptionListener arg0)
                          throws javax.jms.JMSException
Specified by:
setExceptionListener in interface javax.jms.Connection
Throws:
javax.jms.JMSException

start

public void start()
           throws javax.jms.JMSException
Specified by:
start in interface javax.jms.Connection
Throws:
javax.jms.JMSException

stop

public void stop()
          throws javax.jms.JMSException
Specified by:
stop in interface javax.jms.Connection
Throws:
javax.jms.JMSException


Copyright © 2005-2009 QOS.ch. All Rights Reserved.