Class AmqpConnectionProperties
java.lang.Object
org.apache.qpid.jms.provider.amqp.AmqpConnectionProperties
Class used to examine the capabilities and connection properties of the
remote connection and provide that information to the client code in a
simpler and more easy to digest manner.
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpConnectionProperties(JmsConnectionInfo connectionInfo, AmqpProvider provider) Creates a new instance of this class with default values read from the given JmsConnectionInfo object. -
Method Summary
Modifier and TypeMethodDescriptionGet any advertised failover server list details.voidinitialize(org.apache.qpid.proton.amqp.Symbol[] capabilities, Map<org.apache.qpid.proton.amqp.Symbol, Object> properties) Configure the properties using values provided from the remote peer.booleanbooleanReturns true if the remote connection marked the open response as being in a failed state which implies that a close follows.booleanbooleanprotected voidprocessCapabilities(org.apache.qpid.proton.amqp.Symbol[] capabilities) protected voidprocessProperties(Map<org.apache.qpid.proton.amqp.Symbol, Object> properties) voidsetAnonymousRelaySupported(boolean anonymousRelaySupported) Sets if the connection supports sending to an anonymous relay link.voidsetConnectionOpenFailed(boolean connectionOpenFailed) Sets the state of the connection open failed flag.voidsetDeliveryDelaySupported(boolean deliveryDelaySupported) Sets if the connection supports sending message with assigned delivery delays.voidsetQueuePrefix(String queuePrefix) Sets the prefix value used to decorate Queue address values.voidsetSharedSubsSupported(boolean sharedSubsSupported) Sets if the connection supports shared subscriptions features.voidsetTopicPrefix(String topicPrefix) Sets the prefix value used to decorate Topic address values.
-
Constructor Details
-
AmqpConnectionProperties
Creates a new instance of this class with default values read from the given JmsConnectionInfo object.- Parameters:
connectionInfo- the JmsConnectionInfo object used to populate defaults.provider- the provider instance associated with this object
-
-
Method Details
-
initialize
public void initialize(org.apache.qpid.proton.amqp.Symbol[] capabilities, Map<org.apache.qpid.proton.amqp.Symbol, Object> properties) Configure the properties using values provided from the remote peer.- Parameters:
capabilities- the capabilities offered by the remote connection.properties- the properties offered by the remote connection.
-
processCapabilities
protected void processCapabilities(org.apache.qpid.proton.amqp.Symbol[] capabilities) -
processProperties
-
getFailoverServerList
Get any advertised failover server list details.- Returns:
- return the advertised failover server list details, list is empty if no server list given.
-
isDelayedDeliverySupported
public boolean isDelayedDeliverySupported()- Returns:
- true if the connection supports sending message with delivery delays.
-
setDeliveryDelaySupported
public void setDeliveryDelaySupported(boolean deliveryDelaySupported) Sets if the connection supports sending message with assigned delivery delays.- Parameters:
deliveryDelaySupported- true if the delivery delay features is supported.
-
isAnonymousRelaySupported
public boolean isAnonymousRelaySupported()- Returns:
- true if the connection supports sending to an anonymous relay.
-
setAnonymousRelaySupported
public void setAnonymousRelaySupported(boolean anonymousRelaySupported) Sets if the connection supports sending to an anonymous relay link.- Parameters:
anonymousRelaySupported- true if anonymous relay link is supported.
-
getQueuePrefix
- Returns:
- the prefix value used to decorate Queue address values.
-
setQueuePrefix
Sets the prefix value used to decorate Queue address values.- Parameters:
queuePrefix- the current queue address prefix.
-
getTopicPrefix
- Returns:
- the prefix value used to decorate Topic address values.
-
setTopicPrefix
Sets the prefix value used to decorate Topic address values.- Parameters:
topicPrefix- the current topic address prefix.
-
isConnectionOpenFailed
public boolean isConnectionOpenFailed()Returns true if the remote connection marked the open response as being in a failed state which implies that a close follows.- Returns:
- the connectionOpenFailed value.
-
setConnectionOpenFailed
public void setConnectionOpenFailed(boolean connectionOpenFailed) Sets the state of the connection open failed flag. When this flag is set true it implies that the open response will have a close response to follow.- Parameters:
connectionOpenFailed- the connectionOpenFailed value to use for these properties.
-