public class OutputStreamToWriteStream extends Object implements io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>, AsyncCloseable<Void>
| Constructor and Description |
|---|
OutputStreamToWriteStream(io.vertx.core.Context context,
OutputStream outputStream,
boolean autoCloseOutputStream) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close() |
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> |
drainHandler(io.vertx.core.Handler<Void> handler) |
void |
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) |
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> |
setWriteQueueMaxSize(int maxSize) |
io.vertx.core.Future<Void> |
write(io.vertx.core.buffer.Buffer data) |
void |
write(io.vertx.core.buffer.Buffer data,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) |
protected void |
writeInWorker(io.vertx.core.Promise<Void> future) |
boolean |
writeQueueFull() |
public OutputStreamToWriteStream(io.vertx.core.Context context,
OutputStream outputStream,
boolean autoCloseOutputStream)
public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.streams.StreamBaseexceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.Future<Void> write(io.vertx.core.buffer.Buffer data)
write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public void write(io.vertx.core.buffer.Buffer data,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>protected void writeInWorker(io.vertx.core.Promise<Void> future)
public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public boolean writeQueueFull()
writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> drainHandler(io.vertx.core.Handler<Void> handler)
drainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>public CompletableFuture<Void> close()
close in interface AsyncCloseable<Void>Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.