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