protected static class JMSConnectionMockupMQ.TestConnection extends Object implements javax.jms.Connection
Modifier and Type | Field and Description |
---|---|
boolean |
isStarted |
Modifier | Constructor and Description |
---|---|
protected |
TestConnection() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
javax.jms.ConnectionConsumer |
createConnectionConsumer(javax.jms.Destination destination,
String string,
javax.jms.ServerSessionPool serverSessionPool,
int i) |
javax.jms.ConnectionConsumer |
createDurableConnectionConsumer(javax.jms.Topic topic,
String string,
String string1,
javax.jms.ServerSessionPool serverSessionPool,
int i) |
javax.jms.Session |
createSession(boolean b,
int i) |
String |
getClientID() |
javax.jms.ExceptionListener |
getExceptionListener() |
javax.jms.ConnectionMetaData |
getMetaData() |
void |
setClientID(String string) |
void |
setExceptionListener(javax.jms.ExceptionListener exceptionListener) |
void |
start() |
void |
stop() |
public boolean isStarted
protected TestConnection()
public javax.jms.Session createSession(boolean b, int i) throws javax.jms.JMSException
createSession
in interface javax.jms.Connection
javax.jms.JMSException
public void start() throws javax.jms.JMSException
start
in interface javax.jms.Connection
javax.jms.JMSException
public void stop() throws javax.jms.JMSException
stop
in interface javax.jms.Connection
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.Connection
javax.jms.JMSException
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.JMSException
setExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ExceptionListener getExceptionListener() throws javax.jms.JMSException
getExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
public String getClientID() throws javax.jms.JMSException
getClientID
in interface javax.jms.Connection
javax.jms.JMSException
public void setClientID(String string) throws javax.jms.JMSException
setClientID
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionMetaData getMetaData() throws javax.jms.JMSException
getMetaData
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination destination, String string, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
createConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, String string, String string1, javax.jms.ServerSessionPool serverSessionPool, int i) throws javax.jms.JMSException
createDurableConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.