Class AmqpConnectionProperties
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpConnectionProperties
-
public class AmqpConnectionProperties extends java.lang.ObjectClass 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
Constructors Constructor Description AmqpConnectionProperties(JmsConnectionInfo connectionInfo, AmqpProvider provider)Creates a new instance of this class with default values read from the given JmsConnectionInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AmqpRedirect>getFailoverServerList()Get any advertised failover server list details.java.lang.StringgetQueuePrefix()java.lang.StringgetTopicPrefix()voidinitialize(org.apache.qpid.proton.amqp.Symbol[] capabilities, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> properties)Configure the properties using values provided from the remote peer.booleanisAnonymousRelaySupported()booleanisConnectionOpenFailed()Returns true if the remote connection marked the open response as being in a failed state which implies that a close follows.booleanisDelayedDeliverySupported()booleanisSharedSubsSupported()protected voidprocessCapabilities(org.apache.qpid.proton.amqp.Symbol[] capabilities)protected voidprocessProperties(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.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(java.lang.String queuePrefix)Sets the prefix value used to decorate Queue address values.voidsetSharedSubsSupported(boolean sharedSubsSupported)Sets if the connection supports shared subscriptions features.voidsetTopicPrefix(java.lang.String topicPrefix)Sets the prefix value used to decorate Topic address values.
-
-
-
Constructor Detail
-
AmqpConnectionProperties
public AmqpConnectionProperties(JmsConnectionInfo connectionInfo, AmqpProvider provider)
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 Detail
-
initialize
public void initialize(org.apache.qpid.proton.amqp.Symbol[] capabilities, java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.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
protected void processProperties(java.util.Map<org.apache.qpid.proton.amqp.Symbol,java.lang.Object> properties)
-
getFailoverServerList
public java.util.List<AmqpRedirect> getFailoverServerList()
Get any advertised failover server list details.- Returns:
- return the advertised failover server list details, list is empty if no server list given.
-
isSharedSubsSupported
public boolean isSharedSubsSupported()
- Returns:
- true if the connection supports shared subscriptions features.
-
setSharedSubsSupported
public void setSharedSubsSupported(boolean sharedSubsSupported)
Sets if the connection supports shared subscriptions features.- Parameters:
sharedSubsSupported- true if the shared subscriptions features are supported.
-
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
public java.lang.String getQueuePrefix()
- Returns:
- the prefix value used to decorate Queue address values.
-
setQueuePrefix
public void setQueuePrefix(java.lang.String queuePrefix)
Sets the prefix value used to decorate Queue address values.- Parameters:
queuePrefix- the current queue address prefix.
-
getTopicPrefix
public java.lang.String getTopicPrefix()
- Returns:
- the prefix value used to decorate Topic address values.
-
setTopicPrefix
public void setTopicPrefix(java.lang.String topicPrefix)
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.
-
-