This call will never wait indefinitely for a message, it will return {@code null} if nomessages are available for this consumer.
Note however that there is a performance cost as an additional network trip to the server may required to check the queue status.
Calling this method on a closed consumer will throw a HornetQException. @return a message or {@code null} if there are no messages in the queue for this consumer @throws HornetQException if an exception occurs while waiting to receive a message
|
|