The IConnection type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close |
Closes the connection.
| |
CreateSession()()()() |
Creates a new session to work on this connection
| |
CreateSession(AcknowledgementMode) |
Creates a new session to work on this connection
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
PurgeTempDestinations |
For a long running Connection that creates many temp destinations
this method will close and destroy all previously created temp
destinations to reduce resource consumption. This can be useful
when the Connection is pooled or otherwise used for long periods
of time. Only locally created temp destinations should be removed
by this call.
NOTE: This is an optional operation and for NMS providers that
do not support this functionality the method should just return
without throwing any exceptions.
| |
Start | (Inherited from IStartable.) | |
Stop | (Inherited from IStoppable.) |
Properties
Name | Description | |
---|---|---|
AcknowledgementMode |
The default acknowledgement mode
| |
ClientId |
Sets the unique clienet ID for this connection before Start() or returns the
unique client ID after the connection has started
| |
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
Connection sets the provided delegate instance on each Session it creates which then
passes that along to the Consumers it creates.
| |
IsStarted | (Inherited from IStartable.) | |
MetaData |
Gets the Meta Data for the NMS Connection instance.
| |
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 Connection sets the provided delegate instance on each Session it creates which then
passes that along to the Producer it creates.
| |
RedeliveryPolicy |
Get/or set the redelivery policy for this connection.
| |
RequestTimeout |
The default timeout for network requests.
|
Events
Name | Description | |
---|---|---|
ConnectionInterruptedListener |
An asynchronous listener that is notified when a Fault tolerant connection
has been interrupted.
| |
ConnectionResumedListener |
An asynchronous listener that is notified when a Fault tolerant connection
has been resumed.
| |
ExceptionListener |
An asynchronous listener which can be notified if an error occurs
|