Skip to content

Commit

Permalink
bit more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 3, 2024
1 parent b631ef7 commit 4b7b4dd
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,20 @@ static <T> QueueMessage<T> requeueIfDeleted(T message, Runnable doDelete, Runnab
return DefaultQueueMessage.requeueIfDeleted(message, doDelete, doRequeue);
}

/**
* Returns the payload of the message.
* @return the payload of the message
*/
T getMessage();

/**
* Deletes the message from the queue.
*/
void delete();

/**
* Requeues the message. Depending on the type of the message it might not be requeued if it was not deleted.
*/
void requeue();

}

0 comments on commit 4b7b4dd

Please sign in to comment.