QueuedHttpInput fix javadoc
This commit is contained in:
parent
b02535698a
commit
fb04ee8fbd
|
@ -20,10 +20,8 @@ package org.eclipse.jetty.server;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InterruptedIOException;
|
import java.io.InterruptedIOException;
|
||||||
|
|
||||||
import javax.servlet.ServletInputStream;
|
import javax.servlet.ServletInputStream;
|
||||||
|
|
||||||
import org.eclipse.jetty.io.RuntimeIOException;
|
|
||||||
import org.eclipse.jetty.util.ArrayQueue;
|
import org.eclipse.jetty.util.ArrayQueue;
|
||||||
import org.eclipse.jetty.util.log.Log;
|
import org.eclipse.jetty.util.log.Log;
|
||||||
import org.eclipse.jetty.util.log.Logger;
|
import org.eclipse.jetty.util.log.Logger;
|
||||||
|
@ -34,7 +32,7 @@ import org.eclipse.jetty.util.log.Logger;
|
||||||
* <p>{@link QueuedHttpInput} stores the items directly; if the items contain byte buffers, it does not copy them
|
* <p>{@link QueuedHttpInput} stores the items directly; if the items contain byte buffers, it does not copy them
|
||||||
* but simply holds references to the item, thus the caller must organize for those buffers to valid while
|
* but simply holds references to the item, thus the caller must organize for those buffers to valid while
|
||||||
* held by this class.</p>
|
* held by this class.</p>
|
||||||
* <p>To assist the caller, subclasses may override methods {@link #onContentQueued(T)},
|
* <p>To assist the caller, subclasses may override methods {@link #onAsyncRead()},
|
||||||
* {@link #onContentConsumed(T)} and {@link #onAllContentConsumed()} that can be implemented so that the
|
* {@link #onContentConsumed(T)} and {@link #onAllContentConsumed()} that can be implemented so that the
|
||||||
* caller will know when buffers are queued and consumed.</p>
|
* caller will know when buffers are queued and consumed.</p>
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +75,7 @@ public abstract class QueuedHttpInput<T> extends HttpInput<T>
|
||||||
onContentConsumed(item);
|
onContentConsumed(item);
|
||||||
LOG.debug("{} consumed {}", this, item);
|
LOG.debug("{} consumed {}", this, item);
|
||||||
item = _inputQ.peekUnsafe();
|
item = _inputQ.peekUnsafe();
|
||||||
|
|
||||||
// If that was the last item then notify
|
// If that was the last item then notify
|
||||||
if (item==null)
|
if (item==null)
|
||||||
onAllContentConsumed();
|
onAllContentConsumed();
|
||||||
|
|
Loading…
Reference in New Issue