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 Summary
Fields Modifier and Type Field Description static StringFAILOVER_NESTED_OPTION_PREFIX_ADDONPrefix addition used for all nested properties that should be applied to any remote URIs.static StringFAILOVER_OPTION_PREFIXPrefix used for all properties that apply specifically to the FailoverProvider
-
Constructor Summary
Constructors Constructor Description FailoverProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvidercreateProvider(URI remoteURI)Creates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.ProvidercreateProvider(URI remoteURI, ProviderFutureFactory futureFactory)Creates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.StringgetName()-
Methods inherited from class org.apache.qpid.jms.provider.ProviderFactory
create, create, findProviderFactory, findProviderFactory
-
-
-
-
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
-
-
Method Detail
-
createProvider
public Provider createProvider(URI remoteURI) throws Exception
Description copied from class:ProviderFactoryCreates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.- Specified by:
createProviderin classProviderFactory- 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:ProviderFactoryCreates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.- Specified by:
createProviderin classProviderFactory- Parameters:
remoteURI- The URI used to connect to a remote Broker.futureFactory- TheProviderFutureFactoryto use when creating the newProvider.- Returns:
- a new AsyncProvider instance.
- Throws:
Exception- if an error occurs while creating the Provider instance.
-
getName
public String getName()
- Specified by:
getNamein classProviderFactory- Returns:
- the name of this Provider.
-
-