Show / Hide Table of Contents

    Class NMSConnectionFactory

    Implementation of a factory for IConnection instances.

    Inheritance
    System.Object
    NMSConnectionFactory
    Implements
    IConnectionFactory
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Apache.NMS
    Assembly: Apache.NMS.dll
    Syntax
    public class NMSConnectionFactory : IConnectionFactory

    Constructors

    NMSConnectionFactory(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

    factory

    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

    BrokerUri

    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

    CreateConnection()

    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.

    Implements

    IConnectionFactory
    Back to top Copyright © 2005-2019 Apache Software Foundation project
    Generated by DocFX