The IConnection type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes the connection.
Public methodCreateSession()()()()
Creates a new session to work on this connection
Public methodCreateSession(AcknowledgementMode)
Creates a new session to work on this connection
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodPurgeTempDestinations
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.
Public methodStart (Inherited from IStartable.)
Public methodStop (Inherited from IStoppable.)

Properties

  NameDescription
Public propertyAcknowledgementMode
The default acknowledgement mode
Public propertyClientId
Sets the unique clienet ID for this connection before Start() or returns the unique client ID after the connection has started
Public propertyConsumerTransformer
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.
Public propertyIsStarted (Inherited from IStartable.)
Public propertyMetaData
Gets the Meta Data for the NMS Connection instance.
Public propertyProducerTransformer
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.
Public propertyRedeliveryPolicy
Get/or set the redelivery policy for this connection.
Public propertyRequestTimeout
The default timeout for network requests.

Events

  NameDescription
Public eventConnectionInterruptedListener
An asynchronous listener that is notified when a Fault tolerant connection has been interrupted.
Public eventConnectionResumedListener
An asynchronous listener that is notified when a Fault tolerant connection has been resumed.
Public eventExceptionListener
An asynchronous listener which can be notified if an error occurs

See Also