public abstract class GenericObjectStream<T>
extends java.lang.Object
implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
Constructor and Description |
---|
GenericObjectStream() |
Modifier and Type | Method and Description |
---|---|
GenericObjectStream<T> |
endHandler(io.vertx.core.Handler<java.lang.Void> endHandler) |
GenericObjectStream<T> |
exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> exceptionHandler) |
GenericObjectStream<T> |
fetch(long amount) |
GenericObjectStream<T> |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler) |
protected abstract T |
next() |
GenericObjectStream<T> |
pause() |
GenericObjectStream<T> |
resume() |
protected abstract io.vertx.core.buffer.Buffer |
serialize(T n) |
public GenericObjectStream<T> handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> dataHandler)
handler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public GenericObjectStream<T> pause()
pause
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public GenericObjectStream<T> resume()
resume
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
public GenericObjectStream<T> exceptionHandler(io.vertx.core.Handler<java.lang.Throwable> exceptionHandler)
exceptionHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
exceptionHandler
in interface io.vertx.core.streams.StreamBase
public GenericObjectStream<T> endHandler(io.vertx.core.Handler<java.lang.Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
protected abstract io.vertx.core.buffer.Buffer serialize(T n) throws java.lang.Exception
java.lang.Exception
protected abstract T next() throws java.lang.Exception
java.lang.Exception
public GenericObjectStream<T> fetch(long amount)
fetch
in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
Copyright © 2021. All Rights Reserved.