Class AmqpConnectionProperties


  • public class AmqpConnectionProperties
    extends java.lang.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.
    • 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.String getQueuePrefix()  
      java.lang.String getTopicPrefix()  
      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.
      boolean isAnonymousRelaySupported()  
      boolean isConnectionOpenFailed()
      Returns true if the remote connection marked the open response as being in a failed state which implies that a close follows.
      boolean isDelayedDeliverySupported()  
      boolean isSharedSubsSupported()  
      protected void processCapabilities​(org.apache.qpid.proton.amqp.Symbol[] capabilities)  
      protected void processProperties​(java.util.Map<org.apache.qpid.proton.amqp.Symbol,​java.lang.Object> properties)  
      void setAnonymousRelaySupported​(boolean anonymousRelaySupported)
      Sets if the connection supports sending to an anonymous relay link.
      void setConnectionOpenFailed​(boolean connectionOpenFailed)
      Sets the state of the connection open failed flag.
      void setDeliveryDelaySupported​(boolean deliveryDelaySupported)
      Sets if the connection supports sending message with assigned delivery delays.
      void setQueuePrefix​(java.lang.String queuePrefix)
      Sets the prefix value used to decorate Queue address values.
      void setSharedSubsSupported​(boolean sharedSubsSupported)
      Sets if the connection supports shared subscriptions features.
      void setTopicPrefix​(java.lang.String topicPrefix)
      Sets the prefix value used to decorate Topic address values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.