[TIBCO.EMS .NET client library 8.1 documentation]

Closes the message producer.

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public void Close()
Public Sub Close
public:
void Close()

Remarks

Destroy the producer object and reclaim resources.

Message producers rely on resources outside the client program. To reclaim these resources in a timely manner, we recommend that client programs explicitly close message producer objects (rather than waiting for garbage collection).

This function will not return until any incomplete asynchronous send operations for this MessageProducer have been completed and all completion listener callbacks have returned. Incomplete sends will be allowed to complete normally unless an error occurs.

A completion listener callback must not call close on its own MessageProducer. Doing so will throw an IllegalStateException.

See Also