public class ReactiveStreamsBodyGenerator extends Object implements FeedableBodyGenerator
Constructor and Description |
---|
ReactiveStreamsBodyGenerator(org.reactivestreams.Publisher<ByteBuffer> publisher) |
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) |
org.reactivestreams.Publisher<ByteBuffer> |
getPublisher() |
void |
setListener(FeedListener listener) |
public ReactiveStreamsBodyGenerator(org.reactivestreams.Publisher<ByteBuffer> publisher)
public org.reactivestreams.Publisher<ByteBuffer> getPublisher()
public boolean feed(ByteBuffer buffer, boolean isLast) throws Exception
feed
in interface FeedableBodyGenerator
Exception
public void setListener(FeedListener listener)
setListener
in interface FeedableBodyGenerator
public Body createBody()
BodyGenerator
createBody
in interface BodyGenerator
null
.Copyright © 2016. All Rights Reserved.