public class FailoverProviderFactory extends ProviderFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
FAILOVER_NESTED_OPTION_PREFIX_ADDON
Prefix addition used for all nested properties that should be applied to any remote URIs.
|
static String |
FAILOVER_OPTION_PREFIX
Prefix used for all properties that apply specifically to the FailoverProvider
|
| Constructor and Description |
|---|
FailoverProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
Provider |
createProvider(URI remoteURI)
Creates an instance of the given AsyncProvider and configures it using the
properties set on the given remote broker URI.
|
Provider |
createProvider(URI remoteURI,
ProviderFutureFactory futureFactory)
Creates an instance of the given AsyncProvider and configures it using the
properties set on the given remote broker URI.
|
String |
getName() |
create, create, findProviderFactory, findProviderFactorypublic static final String FAILOVER_OPTION_PREFIX
public static final String FAILOVER_NESTED_OPTION_PREFIX_ADDON
public Provider createProvider(URI remoteURI) throws Exception
ProviderFactorycreateProvider in class ProviderFactoryremoteURI - The URI used to connect to a remote Broker.Exception - if an error occurs while creating the Provider instance.public Provider createProvider(URI remoteURI, ProviderFutureFactory futureFactory) throws Exception
ProviderFactorycreateProvider in class ProviderFactoryremoteURI - The URI used to connect to a remote Broker.futureFactory - The ProviderFutureFactory to use when creating the new Provider.Exception - if an error occurs while creating the Provider instance.public String getName()
getName in class ProviderFactoryCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.