The IConnectionConsumer type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes the connection consumer.

Since a provider may allocate some resources on behalf of a connection consumer outside the Java virtual machine, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.

See Also