public class AMQConnectionDelegate_0_10 extends Object implements AMQConnectionDelegate, ConnectionListener, FrameSizeObserver
| 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.
|
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.
|
boolean |
isVirtualHostPropertiesSupported() |
ProtocolVersion |
makeBrokerConnection(BrokerDetails brokerDetail)
Make a connection with the broker
|
void |
opened(Connection conn) |
boolean |
redirect(String host,
List<Object> knownHosts) |
void |
resubscribeSessions() |
void |
setHeartbeatListener(HeartbeatListener listener) |
void |
setMaxFrameSize(int frameSize) |
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 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, QpidException
makeBrokerConnection in interface AMQConnectionDelegatebrokerDetail - The detail of the broker to connect to.IOExceptionQpidExceptionpublic void failoverPrep()
public void resubscribeSessions()
throws javax.jms.JMSException,
QpidException,
FailoverException
resubscribeSessions in interface AMQConnectionDelegatejavax.jms.JMSExceptionQpidExceptionFailoverExceptionpublic void closeConnection(long timeout)
throws javax.jms.JMSException,
QpidException
closeConnection in interface AMQConnectionDelegatejavax.jms.JMSExceptionQpidExceptionpublic 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 boolean redirect(String host, List<Object> knownHosts)
redirect 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,
QpidException
verifyClientID in interface AMQConnectionDelegatejavax.jms.JMSExceptionQpidExceptionpublic boolean supportsIsBound()
supportsIsBound in interface AMQConnectionDelegatepublic boolean isMessageCompressionSupported()
isMessageCompressionSupported in interface AMQConnectionDelegatepublic boolean isVirtualHostPropertiesSupported()
isVirtualHostPropertiesSupported in interface AMQConnectionDelegatepublic void setMaxFrameSize(int frameSize)
setMaxFrameSize in interface FrameSizeObserverCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.