public abstract class QueueBasedFeedableBodyGenerator<T extends java.util.Queue<BodyChunk>> extends java.lang.Object implements FeedableBodyGenerator
| Constructor and Description |
|---|
QueueBasedFeedableBodyGenerator(T queue) |
| Modifier and Type | Method and Description |
|---|---|
Body |
createBody()
Creates a new instance of the request body to be read.
|
boolean |
feed(io.netty.buffer.ByteBuf buffer,
boolean isLast) |
protected abstract boolean |
offer(BodyChunk chunk) |
void |
setListener(FeedListener listener) |
public QueueBasedFeedableBodyGenerator(T queue)
public Body createBody()
BodyGeneratorcreateBody in interface BodyGeneratornull.protected abstract boolean offer(BodyChunk chunk) throws java.lang.Exception
java.lang.Exceptionpublic boolean feed(io.netty.buffer.ByteBuf buffer,
boolean isLast)
throws java.lang.Exception
feed in interface FeedableBodyGeneratorjava.lang.Exceptionpublic void setListener(FeedListener listener)
setListener in interface FeedableBodyGeneratorCopyright © 2018. All Rights Reserved.