Interface IConnectionFactory
A Factory of IConnection objects
Namespace: Apache.NMS
Assembly: Apache.NMS.dll
Syntax
public interface IConnectionFactory
Properties
BrokerUri
Get/or set the broker Uri.
Declaration
Uri BrokerUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ConsumerTransformer
A Delegate that is called each time a Message is dispatched to allow the client to do any necessary transformations on the received message before it is delivered. The ConnectionFactory sets the provided delegate instance on each Connection instance that is created from this factory, each connection in turn passes the delegate along to each Session it creates which then passes that along to the Consumers it creates.
Declaration
ConsumerTransformerDelegate ConsumerTransformer { get; set; }
Property Value
Type | Description |
---|---|
ConsumerTransformerDelegate |
ProducerTransformer
A delegate that is called each time a Message is sent from this Producer which allows the application to perform any needed transformations on the Message before it is sent. The ConnectionFactory sets the provided delegate instance on each Connection instance that is created from this factory, each connection in turn passes the delegate along to each Session it creates which then passes that along to the Producers it creates.
Declaration
ProducerTransformerDelegate ProducerTransformer { get; set; }
Property Value
Type | Description |
---|---|
ProducerTransformerDelegate |
RedeliveryPolicy
Get/or set the redelivery policy that new IConnection objects are assigned upon creation.
Declaration
IRedeliveryPolicy RedeliveryPolicy { get; set; }
Property Value
Type | Description |
---|---|
IRedeliveryPolicy |
Methods
CreateConnection()
Creates a new connection
Declaration
IConnection CreateConnection()
Returns
Type | Description |
---|---|
IConnection |
CreateConnection(String, String)
Creates a new connection with the given user name and password
Declaration
IConnection CreateConnection(string userName, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | |
System.String | password |
Returns
Type | Description |
---|---|
IConnection |