Skip to content

Commit

Permalink
[Java] Update javadoc to explain relaxed semantics in queues. Issue #216
Browse files Browse the repository at this point in the history
.
  • Loading branch information
mjpt777 committed Aug 19, 2020
1 parent 9543bfb commit b5e25e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
* sequentially consistency across methods but this can have a detrimental effect in a resource starved system. This
* internal spinning eats up a CPU core and prevents other threads making progress resulting in latency spikes. To
* avoid this a more relaxed approach is taken in that an in-progress offer is not waited on to complete.
* <p>
* If you wish to check for empty then call {@link #isEmpty()} rather than {@link #size()} checking for zero.
*
* @param <E> type of the elements stored in the {@link java.util.Queue}.
*/
Expand Down

0 comments on commit b5e25e0

Please sign in to comment.