Closes the message consumer.

Namespace:  Apache.NMS
Assembly:  Apache.NMS (in Apache.NMS.dll)

Syntax

Visual Basic
Sub Close
C#
void Close()
Visual C++
void Close()
JavaScript
function close();

Remarks

Clients should close message consumers them when they are not needed. This call blocks until a receive or message listener in progress has completed. A blocked message consumer receive call returns null when this message consumer is closed.

See Also