public class AMQConnectionDelegate_0_10 extends Object implements AMQConnectionDelegate, ConnectionListener
| Constructor and Description |
|---|
AMQConnectionDelegate_0_10(AMQConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection(long timeout) |
void |
closed(Connection conn) |
Session |
createSession(boolean transacted,
int acknowledgeMode,
int prefetchHigh,
int prefetchLow)
create a Session and start it if required.
|
Session |
createSession(boolean transacted,
int acknowledgeMode,
int prefetchHigh,
int prefetchLow,
String name) |
javax.jms.XASession |
createXASession()
Create an XASession with default prefetch values of:
High = MaxPrefetch
Low = MaxPrefetch / 2
|
javax.jms.XASession |
createXASession(int ackMode) |
javax.jms.XASession |
createXASession(int prefetchHigh,
int prefetchLow)
create an XA Session and start it if required.
|
void |
exception(Connection conn,
ConnectionException exc) |
<T,E extends Exception> |
executeRetrySupport(FailoverProtectedOperation<T,E> operation) |
void |
failoverPrep() |
int |
getMaxChannelID() |
int |
getMinChannelID() |
ProtocolVersion |
getProtocolVersion() |
protected Connection |
getQpidConnection() |
String |
getUUID() |
boolean |
isMessageCompressionSupported() |
boolean |
isSupportedServerFeature(String featureName)
Tests whether the server has advertised support for the specified feature
via the qpid.features server connection property.
|
ProtocolVersion |
makeBrokerConnection(BrokerDetails brokerDetail)
Make a connection with the broker
|
void |
opened(Connection conn) |
void |
resubscribeSessions() |
void |
setHeartbeatListener(HeartbeatListener listener) |
boolean |
supportsIsBound() |
boolean |
verifyClientID() |
public AMQConnectionDelegate_0_10(AMQConnection conn)
public Session createSession(boolean transacted, int acknowledgeMode, int prefetchHigh, int prefetchLow) throws javax.jms.JMSException
createSession in interface AMQConnectionDelegatejavax.jms.JMSExceptionpublic Session createSession(boolean transacted, int acknowledgeMode, int prefetchHigh, int prefetchLow, String name) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XASession createXASession()
throws javax.jms.JMSException
createXASession in interface AMQConnectionDelegatejavax.jms.JMSExceptionpublic javax.jms.XASession createXASession(int prefetchHigh,
int prefetchLow)
throws javax.jms.JMSException
createXASession in interface AMQConnectionDelegatejavax.jms.JMSExceptionpublic javax.jms.XASession createXASession(int ackMode)
throws javax.jms.JMSException
createXASession in interface AMQConnectionDelegatejavax.jms.JMSExceptionpublic ProtocolVersion makeBrokerConnection(BrokerDetails brokerDetail) throws IOException, AMQException
makeBrokerConnection in interface AMQConnectionDelegatebrokerDetail - The detail of the broker to connect to.IOExceptionAMQExceptionpublic void failoverPrep()
public void resubscribeSessions()
throws javax.jms.JMSException,
AMQException,
FailoverException
resubscribeSessions in interface AMQConnectionDelegatejavax.jms.JMSExceptionAMQExceptionFailoverExceptionpublic void closeConnection(long timeout)
throws javax.jms.JMSException,
AMQException
closeConnection in interface AMQConnectionDelegatejavax.jms.JMSExceptionAMQExceptionpublic void opened(Connection conn)
opened in interface ConnectionListenerpublic void exception(Connection conn, ConnectionException exc)
exception in interface ConnectionListenerpublic void closed(Connection conn)
closed in interface ConnectionListenerpublic <T,E extends Exception> T executeRetrySupport(FailoverProtectedOperation<T,E> operation) throws E extends Exception
executeRetrySupport in interface AMQConnectionDelegateE extends Exceptionpublic int getMaxChannelID()
getMaxChannelID in interface AMQConnectionDelegatepublic int getMinChannelID()
getMinChannelID in interface AMQConnectionDelegatepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface AMQConnectionDelegatepublic String getUUID()
public boolean isSupportedServerFeature(String featureName)
AMQConnectionDelegateqpid. followed by one or more words separated by minus signs
e.g. qpid.jms-selector.isSupportedServerFeature in interface AMQConnectionDelegatefeatureName - name of feature.public void setHeartbeatListener(HeartbeatListener listener)
setHeartbeatListener in interface AMQConnectionDelegateprotected Connection getQpidConnection()
public boolean verifyClientID()
throws javax.jms.JMSException,
AMQException
verifyClientID in interface AMQConnectionDelegatejavax.jms.JMSExceptionAMQExceptionpublic boolean supportsIsBound()
supportsIsBound in interface AMQConnectionDelegatepublic boolean isMessageCompressionSupported()
isMessageCompressionSupported in interface AMQConnectionDelegateCopyright © 2006–2015 The Apache Software Foundation. All rights reserved.