Class NMSConnectionFactory
Implementation of a factory for IConnection instances.
Inheritance
Implements
Inherited Members
Namespace: Apache.NMS
Assembly: Apache.NMS.dll
Syntax
public class NMSConnectionFactory : IConnectionFactory
Constructors
| Improve this Doc View SourceNMSConnectionFactory(String, Object[])
The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.
Declaration
public NMSConnectionFactory(string providerURI, params object[] constructorParams)
Parameters
Type | Name | Description |
---|---|---|
System.String | providerURI | The URI for the ActiveMQ provider. |
System.Object[] | constructorParams | Optional parameters to use when creating the ConnectionFactory. |
NMSConnectionFactory(Uri, Object[])
The ConnectionFactory object must define a constructor that takes as a minimum a Uri object. Any additional parameters are optional, but will typically include a Client ID string.
Declaration
public NMSConnectionFactory(Uri uriProvider, params object[] constructorParams)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uriProvider | The URI for the ActiveMQ provider. |
System.Object[] | constructorParams | Optional parameters to use when creating the ConnectionFactory. |
Fields
| Improve this Doc View Sourcefactory
Declaration
protected readonly IConnectionFactory factory
Field Value
Type | Description |
---|---|
IConnectionFactory |
schemaProviderFactoryMap
Declaration
protected static readonly Dictionary<string, ProviderFactoryInfo> schemaProviderFactoryMap
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, ProviderFactoryInfo> |
Properties
| Improve this Doc View SourceBrokerUri
Get/or set the broker Uri.
Declaration
public Uri BrokerUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ConnectionFactory
The actual IConnectionFactory implementation that is being used. This implementation depends on the scheme of the URI used when constructed.
Declaration
public IConnectionFactory ConnectionFactory { get; }
Property Value
Type | Description |
---|---|
IConnectionFactory |
ConsumerTransformer
Get/or Set the ConsumerTransformerDelegate using the IConnectionFactory implementation that is currently being used.
Declaration
public ConsumerTransformerDelegate ConsumerTransformer { get; set; }
Property Value
Type | Description |
---|---|
ConsumerTransformerDelegate |
ProducerTransformer
Get/or Set the ProducerTransformerDelegate using the IConnectionFactory implementation that is currently being used.
Declaration
public ProducerTransformerDelegate ProducerTransformer { get; set; }
Property Value
Type | Description |
---|---|
ProducerTransformerDelegate |
RedeliveryPolicy
Get/or Set the IRedeliveryPolicy instance using the IConnectionFactory implementation that is being used.
Declaration
public IRedeliveryPolicy RedeliveryPolicy { get; set; }
Property Value
Type | Description |
---|---|
IRedeliveryPolicy |
Methods
| Improve this Doc View SourceCreateConnection()
Creates a new connection.
Declaration
public IConnection CreateConnection()
Returns
Type | Description |
---|---|
IConnection | An IConnection created by the requested ConnectionFactory. |
CreateConnection(String, String)
Creates a new connection with the given userName
and password
credentials.
Declaration
public IConnection CreateConnection(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The username to use when establishing the connection. |
System.String | password | The password to use when establishing the connection. |
Returns
Type | Description |
---|---|
IConnection | An IConnection created by the requested ConnectionFactory. |
CreateConnectionFactory(Uri, Object[])
Create a connection factory that can create connections for the given scheme in the URI.
Declaration
public static IConnectionFactory CreateConnectionFactory(Uri uriProvider, params object[] constructorParams)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uriProvider | The URI for the ActiveMQ provider. |
System.Object[] | constructorParams | Optional parameters to use when creating the ConnectionFactory. |
Returns
Type | Description |
---|---|
IConnectionFactory | A IConnectionFactory implementation that will be used. |
CreateContext()
Declaration
public INMSContext CreateContext()
Returns
Type | Description |
---|---|
INMSContext |
CreateContext(AcknowledgementMode)
Declaration
public INMSContext CreateContext(AcknowledgementMode acknowledgementMode)
Parameters
Type | Name | Description |
---|---|---|
AcknowledgementMode | acknowledgementMode |
Returns
Type | Description |
---|---|
INMSContext |
CreateContext(String, String)
Declaration
public INMSContext CreateContext(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | |
System.String | password |
Returns
Type | Description |
---|---|
INMSContext |
CreateContext(String, String, AcknowledgementMode)
Declaration
public INMSContext CreateContext(string userName, string password, AcknowledgementMode acknowledgementMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | |
System.String | password | |
AcknowledgementMode | acknowledgementMode |
Returns
Type | Description |
---|---|
INMSContext |