WebLogic Messaging API Class Library

IMessageConsumer. Method (Int64)

Receives the next message that arrives within the specified timeout interval.

This call blocks until a message arrives, the timeout expires, or this message consumer is closed. A timeout of zero never expires, and the call blocks indefinitely.

IMessage (
   Int64 timeout
);

Parameters

Int64
the timeout value (in milliseconds)

Return Value

the next message produced for this message consumer, or null if the timeout expires or this message consumer is concurrently closed

Exceptions

Exception TypeCondition
MessageExceptionif the JMS provider fails to receive the next message due to some internal error.

See Also

IMessageConsumer Interface | WebLogic.Messaging Namespace | IMessageConsumer. Overload List