src/java.net.http/share/classes/jdk/internal/net/http/websocket/MessageQueue.java
branchhttp-client-branch
changeset 56295 898dfb226bd0
parent 56291 c8c4c707ff3a
child 56303 a82058c084ef
equal deleted inserted replaced
56294:181bc33917e4 56295:898dfb226bd0
    81  * ----------------------------------------------------------------------------
    81  * ----------------------------------------------------------------------------
    82  * [1] To advance the index is to change it from i to (i + 1) % (n + 1).
    82  * [1] To advance the index is to change it from i to (i + 1) % (n + 1).
    83  */
    83  */
    84 public class MessageQueue {
    84 public class MessageQueue {
    85 
    85 
    86     private final static boolean DEBUG = true;
    86     private final static boolean DEBUG = false;
    87 
    87 
    88     @Stable
    88     @Stable
    89     private final Message[] elements;
    89     private final Message[] elements;
    90 
    90 
    91     private final AtomicInteger tail = new AtomicInteger();
    91     private final AtomicInteger tail = new AtomicInteger();