Skip to content

Commit

Permalink
Add concurrency notice
Browse files Browse the repository at this point in the history
Add concurrency notice

#2021
  • Loading branch information
smcvb committed Aug 31, 2022
1 parent 76177f4 commit 29510d1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ void requeue(@Nonnull DeadLetter<? extends M> letter,
/**
* Returns the number of dead-letters for the sequence matching the given {@code sequenceIdentifier} contained in
* this queue.
* <p>
* Note that there's a window of opportunity where the size might exceed the {@link #maxSequenceSize()} value to
* accompany concurrent usage.
*
* @param sequenceIdentifier The identifier of the sequence to retrieve the size from.
* @return The number of dead-letters for the sequence matching the given {@code sequenceIdentifier}.
Expand All @@ -160,6 +163,9 @@ void requeue(@Nonnull DeadLetter<? extends M> letter,

/**
* Returns the number of unique sequences contained in this queue.
* <p>
* Note that there's a window of opportunity where the size might exceed the {@link #maxSequences()} value to
* accompany concurrent usage of this dead letter queue.
*
* @return The number of unique sequences contained in this queue.
*/
Expand Down

0 comments on commit 29510d1

Please sign in to comment.