Class FailoverProviderFactory

java.lang.Object
org.apache.qpid.jms.provider.ProviderFactory
org.apache.qpid.jms.provider.failover.FailoverProviderFactory

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

    • FAILOVER_OPTION_PREFIX

      public static final String FAILOVER_OPTION_PREFIX
      Prefix used for all properties that apply specifically to the FailoverProvider
      See Also:
    • 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:
  • Constructor Details

    • FailoverProviderFactory

      public FailoverProviderFactory()
  • Method Details

    • 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.
    • createProvider

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

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