Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method name

Description

receive()

Waits until a message is available and then returns it; potentially blocking forever

receive(long)http://activemq.apache.org/camel/maven/camel-core/apidocs/org/apache/camel/PollingConsumer.html#receive(long)]

Attempts to receive a message exchange immediately without waiting and returning null if a message exchange is not available yet

receiveNoWait()

Attempts to receive a message exchange, waiting up to the given timeout and returning null if no message exchange could be received within the time available

...