Class AmqpProviderFactory
- java.lang.Object
-
- org.apache.qpid.jms.provider.ProviderFactory
-
- org.apache.qpid.jms.provider.amqp.AmqpProviderFactory
-
public class AmqpProviderFactory extends ProviderFactory
Factory for creating the AMQP provider.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PROVIDER_SCHEMEstatic StringDEFAULT_TRANSPORT_SCHEME
-
Constructor Summary
Constructors Constructor Description AmqpProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmqpProvidercreateProvider(URI remoteURI)Creates an instance of the given AsyncProvider and configures it using the properties set on the given remote broker URI.AmqpProvidercreateProvider(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()StringgetProviderScheme()StringgetTransportScheme()voidsetProviderScheme(String providerScheme)voidsetTransportScheme(String transportScheme)-
Methods inherited from class org.apache.qpid.jms.provider.ProviderFactory
create, create, findProviderFactory, findProviderFactory
-
-
-
-
Field Detail
-
DEFAULT_TRANSPORT_SCHEME
public static final String DEFAULT_TRANSPORT_SCHEME
- See Also:
- Constant Field Values
-
DEFAULT_PROVIDER_SCHEME
public static final String DEFAULT_PROVIDER_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createProvider
public AmqpProvider 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 AmqpProvider 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.
-
getTransportScheme
public String getTransportScheme()
-
setTransportScheme
public void setTransportScheme(String transportScheme)
- Parameters:
transportScheme- the transport type name to use when creating a new provider.
-
getProviderScheme
public String getProviderScheme()
-
setProviderScheme
public void setProviderScheme(String providerScheme)
- Parameters:
providerScheme- the providerScheme to use to identify the AMQP provider
-
-