Relocate a comment in HttpPipeliningHandler

This commit moves a comment in HttpPipeliningHandler as it makes more
sense for this comment to be where the field that it is explaining is
declared.
This commit is contained in:
Jason Tedor 2017-02-22 20:51:18 -05:00
parent 30f723d2b0
commit 6ca90a61a6
1 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@ public class HttpPipeliningHandler extends ChannelDuplexHandler {
private int readSequence; private int readSequence;
private int writeSequence; private int writeSequence;
// we use a priority queue so that responses are ordered by their sequence number
private final PriorityQueue<HttpPipelinedResponse> holdingQueue; private final PriorityQueue<HttpPipelinedResponse> holdingQueue;
/** /**
@ -55,7 +56,6 @@ public class HttpPipeliningHandler extends ChannelDuplexHandler {
*/ */
public HttpPipeliningHandler(final int maxEventsHeld) { public HttpPipeliningHandler(final int maxEventsHeld) {
this.maxEventsHeld = maxEventsHeld; this.maxEventsHeld = maxEventsHeld;
// we use a priority queue so that responses are ordered by their sequence number
this.holdingQueue = new PriorityQueue<>(INITIAL_EVENTS_HELD); this.holdingQueue = new PriorityQueue<>(INITIAL_EVENTS_HELD);
} }