nextElement

 

public Object nextElement() throws NoSuchElementException;

Gets the current message. Always returns a message if hasMoreElements() returns true. It is possible for the returned message to pass its expiry date between the hasMoreElements() and the nextElement() calls.

Returns

  • the current message.

Exceptions

  • NoSuchElementException -


uj29850_