public class ManagedConnectionProxy extends Object implements Connection, QueueConnection, TopicConnection, ExceptionListener
| Constructor and Description |
|---|
ManagedConnectionProxy(ActiveMQManagedConnection managedConnection,
ConnectionRequestInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by the ActiveMQManagedConnection to invalidate this proxy.
|
void |
close()
Used to let the ActiveMQManagedConnection that this connection handel is
not needed by the app.
|
ConnectionConsumer |
createConnectionConsumer(Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) |
ConnectionConsumer |
createConnectionConsumer(Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) |
ConnectionConsumer |
createConnectionConsumer(Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) |
ConnectionConsumer |
createDurableConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages) |
QueueSession |
createQueueSession(boolean transacted,
int acknowledgeMode) |
Session |
createSession(boolean transacted,
int acknowledgeMode) |
TopicSession |
createTopicSession(boolean transacted,
int acknowledgeMode) |
String |
getClientID() |
ExceptionListener |
getExceptionListener() |
ActiveMQManagedConnection |
getManagedConnection() |
ConnectionMetaData |
getMetaData() |
void |
onException(JMSException e) |
protected void |
sessionClosed(ManagedSessionProxy session) |
void |
setClientID(String clientID)
Sets client id on delegate
|
void |
setExceptionListener(ExceptionListener listener)
sets exception listener on delegate
|
void |
setUseSharedTxContext(boolean enable) |
void |
start() |
void |
stop() |
public ManagedConnectionProxy(ActiveMQManagedConnection managedConnection, ConnectionRequestInfo info)
public void close() throws JMSException
close in interface ConnectionJMSExceptionpublic void cleanup()
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException
createSession in interface Connectiontransacted - Whether session is transactedacknowledgeMode - session acknowledge modeJMSException - on errorprotected void sessionClosed(ManagedSessionProxy session)
public void setUseSharedTxContext(boolean enable) throws JMSException
JMSExceptionpublic QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException
createQueueSession in interface QueueConnectiontransacted - Whether session is transactedacknowledgeMode - session acknowledge modeJMSException - on errorpublic TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException
createTopicSession in interface TopicConnectiontransacted - Whether session is transactedacknowledgeMode - session acknowledge modeJMSException - on errorpublic String getClientID() throws JMSException
getClientID in interface ConnectionJMSExceptionpublic ExceptionListener getExceptionListener() throws JMSException
getExceptionListener in interface ConnectionJMSExceptionpublic ConnectionMetaData getMetaData() throws JMSException
getMetaData in interface ConnectionJMSExceptionpublic void setClientID(String clientID) throws JMSException
setClientID in interface ConnectionclientID - new clientIdJMSExceptionpublic void setExceptionListener(ExceptionListener listener) throws JMSException
setExceptionListener in interface Connectionlistener - new listenerJMSExceptionpublic void start() throws JMSException
start in interface ConnectionJMSExceptionpublic void stop() throws JMSException
stop in interface ConnectionJMSExceptionpublic ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
createConnectionConsumer in interface QueueConnectionqueue - messageSelector - sessionPool - maxMessages - JMSExceptionpublic ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
createConnectionConsumer in interface TopicConnectiontopic - messageSelector - sessionPool - maxMessages - JMSExceptionpublic ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
createConnectionConsumer in interface Connectiondestination - messageSelector - sessionPool - maxMessages - JMSExceptionpublic ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
createDurableConnectionConsumer in interface ConnectioncreateDurableConnectionConsumer in interface TopicConnectiontopic - subscriptionName - messageSelector - sessionPool - maxMessages - JMSExceptionpublic ActiveMQManagedConnection getManagedConnection()
public void onException(JMSException e)
onException in interface ExceptionListenerCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.