public class BodyGeneratorStream extends FeedableBodyGenerator implements com.ning.http.client.BodyGenerator, org.vertx.java.core.streams.WriteStream<BodyGeneratorStream>
FeedableBodyGenerator.FeedListener
Constructor and Description |
---|
BodyGeneratorStream(org.vertx.java.core.streams.ReadStream<?> bodyStream) |
Modifier and Type | Method and Description |
---|---|
com.ning.http.client.Body |
createBody() |
BodyGeneratorStream |
drainHandler(org.vertx.java.core.Handler<java.lang.Void> handler) |
BodyGeneratorStream |
exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler) |
BodyGeneratorStream |
setWriteQueueMaxSize(int maxSize) |
BodyGeneratorStream |
write(org.vertx.java.core.buffer.Buffer data) |
boolean |
writeQueueFull() |
feed, setListener
public BodyGeneratorStream(org.vertx.java.core.streams.ReadStream<?> bodyStream)
public com.ning.http.client.Body createBody() throws java.io.IOException
createBody
in interface com.ning.http.client.BodyGenerator
createBody
in class FeedableBodyGenerator
java.io.IOException
public BodyGeneratorStream exceptionHandler(org.vertx.java.core.Handler<java.lang.Throwable> handler)
exceptionHandler
in interface org.vertx.java.core.streams.ExceptionSupport<BodyGeneratorStream>
public BodyGeneratorStream setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize
in interface org.vertx.java.core.streams.DrainSupport<BodyGeneratorStream>
public boolean writeQueueFull()
writeQueueFull
in interface org.vertx.java.core.streams.DrainSupport<BodyGeneratorStream>
public BodyGeneratorStream drainHandler(org.vertx.java.core.Handler<java.lang.Void> handler)
drainHandler
in interface org.vertx.java.core.streams.DrainSupport<BodyGeneratorStream>
public BodyGeneratorStream write(org.vertx.java.core.buffer.Buffer data)
write
in interface org.vertx.java.core.streams.WriteStream<BodyGeneratorStream>
Copyright © 2021. All Rights Reserved.