public class WriteToRead<T>
extends java.lang.Object
implements io.vertx.core.streams.WriteStream<T>, io.vertx.core.streams.ReadStream<T>
Constructor and Description |
---|
WriteToRead(io.vertx.core.Vertx vertx) |
Modifier and Type | Method and Description |
---|---|
WriteToRead<T> |
drainHandler(io.vertx.core.Handler<java.lang.Void> handler) |
void |
end() |
void |
end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
WriteToRead<T> |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
WriteToRead<T> |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler) |
WriteToRead<T> |
fetch(long amount) |
WriteToRead<T> |
handler(io.vertx.core.Handler<T> handler) |
WriteToRead<T> |
pause() |
WriteToRead<T> |
resume() |
WriteToRead<T> |
setWriteQueueMaxSize(int maxSize) |
WriteToRead<T> |
write(T data) |
WriteToRead<T> |
write(T data,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) |
boolean |
writeQueueFull() |
public WriteToRead<T> exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> handler)
public WriteToRead<T> write(T data)
write
in interface io.vertx.core.streams.WriteStream<T>
public WriteToRead<T> write(T data, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
write
in interface io.vertx.core.streams.WriteStream<T>
public void end()
end
in interface io.vertx.core.streams.WriteStream<T>
public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)
end
in interface io.vertx.core.streams.WriteStream<T>
public WriteToRead<T> setWriteQueueMaxSize(int maxSize)
setWriteQueueMaxSize
in interface io.vertx.core.streams.WriteStream<T>
public boolean writeQueueFull()
writeQueueFull
in interface io.vertx.core.streams.WriteStream<T>
public WriteToRead<T> drainHandler(io.vertx.core.Handler<java.lang.Void> handler)
drainHandler
in interface io.vertx.core.streams.WriteStream<T>
public WriteToRead<T> handler(io.vertx.core.Handler<T> handler)
handler
in interface io.vertx.core.streams.ReadStream<T>
public WriteToRead<T> pause()
pause
in interface io.vertx.core.streams.ReadStream<T>
public WriteToRead<T> resume()
resume
in interface io.vertx.core.streams.ReadStream<T>
public WriteToRead<T> fetch(long amount)
fetch
in interface io.vertx.core.streams.ReadStream<T>
public WriteToRead<T> endHandler(io.vertx.core.Handler<java.lang.Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<T>
Copyright © 2021. All Rights Reserved.