Class BodyGeneratorStream
java.lang.Object
org.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator<ConcurrentLinkedQueue<org.asynchttpclient.request.body.generator.BodyChunk>>
net.bluemind.core.rest.http.internal.BodyGeneratorStream
- All Implemented Interfaces:
 io.vertx.core.streams.StreamBase,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>,org.asynchttpclient.request.body.generator.BodyGenerator,org.asynchttpclient.request.body.generator.FeedableBodyGenerator
public class BodyGeneratorStream
extends org.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator<ConcurrentLinkedQueue<org.asynchttpclient.request.body.generator.BodyChunk>>
implements org.asynchttpclient.request.body.generator.BodyGenerator, io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
- 
Field Summary
Fields inherited from class org.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator
queue - 
Constructor Summary
ConstructorsConstructorDescriptionBodyGeneratorStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> bodyStream)  - 
Method Summary
Modifier and TypeMethodDescriptionorg.asynchttpclient.request.body.BodydrainHandler(io.vertx.core.Handler<Void> handler) io.vertx.core.Future<Void> end()voidexceptionHandler(io.vertx.core.Handler<Throwable> handler) protected booleanoffer(org.asynchttpclient.request.body.generator.BodyChunk chunk) setWriteQueueMaxSize(int maxSize) io.vertx.core.Future<Void> write(io.vertx.core.buffer.Buffer data) voidwrite(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) booleanMethods inherited from class org.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator
feed, setListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.core.streams.WriteStream
end, end 
- 
Constructor Details
- 
BodyGeneratorStream
public BodyGeneratorStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> bodyStream)  
 - 
 - 
Method Details
- 
createBody
public org.asynchttpclient.request.body.Body createBody()- Specified by:
 createBodyin interfaceorg.asynchttpclient.request.body.generator.BodyGenerator- Overrides:
 createBodyin classorg.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator<ConcurrentLinkedQueue<org.asynchttpclient.request.body.generator.BodyChunk>>
 - 
offer
protected boolean offer(org.asynchttpclient.request.body.generator.BodyChunk chunk) - Specified by:
 offerin classorg.asynchttpclient.request.body.generator.QueueBasedFeedableBodyGenerator<ConcurrentLinkedQueue<org.asynchttpclient.request.body.generator.BodyChunk>>
 - 
exceptionHandler
- Specified by:
 exceptionHandlerin interfaceio.vertx.core.streams.StreamBase- Specified by:
 exceptionHandlerin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
setWriteQueueMaxSize
- Specified by:
 setWriteQueueMaxSizein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
writeQueueFull
public boolean writeQueueFull()- Specified by:
 writeQueueFullin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
drainHandler
- Specified by:
 drainHandlerin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
write
- Specified by:
 writein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
write
public void write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
 writein interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
end
- Specified by:
 endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 - 
end
- Specified by:
 endin interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
 
 -