Work with Message instances
mainWhen a Reader receives a message, it is provided as a Message object. This object allows you to control the lifecycle of that specific message.
Common operations on a Message include:
finish(): Acknowledges the message as successfully processed.requeue(delay): Puts the message back into the queue with an optional delay (defaultrequeueDelayis 90 seconds).touch(): Resets the message timeout to prevent it from being marked as timed out.
Messages also support maxAttempts to track how many times a message has been delivered. If maxAttempts is exceeded, the message is automatically finished (as of v0.7.0).