The methods of the IMessageConsumer interface are listed below. For a complete list of IMessageConsumer interface members, see the IMessageConsumer Members topic.
Close | Closes the message consumer. Since a provider may allocate some resources on behalf of a IMessageConsumer outside the Java virtual machine, clients should Close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. 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. |
Receive | Overloaded. Receives the next message produced for this message consumer. This call blocks indefinitely until a message is produced or until this message consumer is closed. If this Receive is done within a transaction, the consumer retains the message until the transaction commits. |
ReceiveNoWait | Receives the next message if one is immediately available. |
IMessageConsumer Interface | WebLogic.Messaging Namespace | ISession