Interface FeedableBodyGenerator
-
- All Superinterfaces:
BodyGenerator
- All Known Implementing Classes:
BoundedQueueFeedableBodyGenerator
,QueueBasedFeedableBodyGenerator
,UnboundedQueueFeedableBodyGenerator
public interface FeedableBodyGenerator extends BodyGenerator
BodyGenerator
which may return just part of the payload at the time handler is requesting it. If it happens, client becomes responsible for providing the rest of the chunks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
feed(io.netty.buffer.ByteBuf buffer, boolean isLast)
void
setListener(FeedListener listener)
-
Methods inherited from interface org.asynchttpclient.request.body.generator.BodyGenerator
createBody
-
-
-
-
Method Detail
-
feed
boolean feed(io.netty.buffer.ByteBuf buffer, boolean isLast) throws Exception
- Throws:
Exception
-
setListener
void setListener(FeedListener listener)
-
-