Class FailoverProviderFactory


  • public class FailoverProviderFactory
    extends ProviderFactory
    Factory for creating instances of the Failover Provider type.
    • Field Detail

      • FAILOVER_OPTION_PREFIX

        public static final String FAILOVER_OPTION_PREFIX
        Prefix used for all properties that apply specifically to the FailoverProvider
        See Also:
        Constant Field Values
      • FAILOVER_NESTED_OPTION_PREFIX_ADDON

        public static final String FAILOVER_NESTED_OPTION_PREFIX_ADDON
        Prefix addition used for all nested properties that should be applied to any remote URIs.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FailoverProviderFactory

        public FailoverProviderFactory()
    • Method Detail

      • createProvider

        public Provider createProvider​(URI remoteURI)
                                throws Exception
        Description copied from class: ProviderFactory
        Creates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.
        Specified by:
        createProvider in class ProviderFactory
        Parameters:
        remoteURI - The URI used to connect to a remote Broker.
        Returns:
        a new AsyncProvider instance.
        Throws:
        Exception - if an error occurs while creating the Provider instance.