Class AMQPFederationConfiguration


  • public final class AMQPFederationConfiguration
    extends Object
    A configuration class that contains API for getting federation specific configuration either from a Map of configuration elements or from the connection associated with the federation instance, or possibly from a set default value.
    • Field Detail

      • DEFAULT_LINK_ATTACH_TIMEOUT

        public static final int DEFAULT_LINK_ATTACH_TIMEOUT
        Default timeout value (in seconds) used to control when a link attach is considered to have failed due to not responding to an attach request.
        See Also:
        Constant Field Values
      • DEFAULT_CORE_MESSAGE_TUNNELING_ENABLED

        public static final boolean DEFAULT_CORE_MESSAGE_TUNNELING_ENABLED
        Default value for the core message tunneling feature that indicates if core protocol messages should be streamed as binary blobs as the payload of an custom AMQP message which avoids any conversions of the messages to / from AMQP.
        See Also:
        Constant Field Values
    • Method Detail

      • getReceiverCredits

        public int getReceiverCredits()
        Returns:
        the credit batch size offered to a Receiver link.
      • getReceiverCreditsLow

        public int getReceiverCreditsLow()
        Returns:
        the number of remaining credits on a Receiver before the batch is replenished.
      • getLargeMessageThreshold

        public int getLargeMessageThreshold()
        Returns:
        the size in bytes of an incoming message after which the Receiver treats it as large.
      • getLinkAttachTimeout

        public int getLinkAttachTimeout()
        Returns:
        the size in bytes of an incoming message after which the Receiver treats it as large.
      • isCoreMessageTunnelingEnabled

        public boolean isCoreMessageTunnelingEnabled()
        Returns:
        true if the federation is configured to tunnel core messages as AMQP custom messages.
      • isIgnoreSubscriptionFilters

        public boolean isIgnoreSubscriptionFilters()
        Returns:
        true if federation is configured to ignore filters on individual queue consumers
      • isIgnoreSubscriptionPriorities

        public boolean isIgnoreSubscriptionPriorities()
        Returns:
        true if federation is configured to ignore priorities on individual queue consumers
      • toConfigurationMap

        public Map<String,​Object> toConfigurationMap()
        Enumerate the configuration options in this configuration object and return a Map that contains the values which can be sent to a remote peer
        Returns:
        a Map that contains the values of each configuration option.