public abstract class QueueBasedFeedableBodyGenerator<T extends Queue<BodyChunk>> extends 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(ByteBuffer buffer,
boolean isLast) |
protected abstract boolean |
offer(BodyChunk chunk) |
void |
setListener(FeedListener listener) |
public QueueBasedFeedableBodyGenerator(T queue)
public Body createBody()
BodyGeneratorcreateBody in interface BodyGeneratornull.public boolean feed(ByteBuffer buffer, boolean isLast) throws Exception
feed in interface FeedableBodyGeneratorExceptionpublic void setListener(FeedListener listener)
setListener in interface FeedableBodyGeneratorCopyright © 2016. All Rights Reserved.