Class FailoverProviderFactory


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

      • FAILOVER_OPTION_PREFIX

        public static final java.lang.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 java.lang.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​(java.net.URI remoteURI)
                                throws java.lang.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:
        java.lang.Exception - if an error occurs while creating the Provider instance.
      • createProvider

        public Provider createProvider​(java.net.URI remoteURI,
                                       ProviderFutureFactory futureFactory)
                                throws java.lang.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.
        futureFactory - The ProviderFutureFactory to use when creating the new Provider.
        Returns:
        a new AsyncProvider instance.
        Throws:
        java.lang.Exception - if an error occurs while creating the Provider instance.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class ProviderFactory
        Returns:
        the name of this Provider.