Class AmqpConnectionProperties


  • public class AmqpConnectionProperties
    extends Object
    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 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,
                               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

        protected void processProperties​(Map<org.apache.qpid.proton.amqp.Symbol,​Object> properties)
      • getFailoverServerList

        public 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 String getQueuePrefix()
        Returns:
        the prefix value used to decorate Queue address values.
      • setQueuePrefix

        public void setQueuePrefix​(String queuePrefix)
        Sets the prefix value used to decorate Queue address values.
        Parameters:
        queuePrefix - the current queue address prefix.
      • getTopicPrefix

        public String getTopicPrefix()
        Returns:
        the prefix value used to decorate Topic address values.
      • setTopicPrefix

        public void setTopicPrefix​(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.