Package io.vertx.grpc.stub
Class GrpcWriteStream<T>
- java.lang.Object
-
- io.vertx.grpc.stub.GrpcWriteStream<T>
-
- All Implemented Interfaces:
StreamBase,WriteStream<T>
public class GrpcWriteStream<T> extends Object implements WriteStream<T>
- Author:
- ecatala
-
-
Constructor Summary
Constructors Constructor Description GrpcWriteStream(io.grpc.stub.StreamObserver<T> observer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WriteStream<T>drainHandler(Handler<Void> hndlr)Future<Void>end()WriteStream<T>exceptionHandler(Handler<Throwable> hndlr)WriteStream<T>setWriteQueueMaxSize(int i)io.grpc.stub.StreamObserver<T>streamObserver()Low level control of the observer for advanced use cases.Future<Void>write(T data)booleanwriteQueueFull()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertx.core.streams.WriteStream
end
-
-
-
-
Constructor Detail
-
GrpcWriteStream
public GrpcWriteStream(io.grpc.stub.StreamObserver<T> observer)
-
-
Method Detail
-
exceptionHandler
public WriteStream<T> exceptionHandler(Handler<Throwable> hndlr)
- Specified by:
exceptionHandlerin interfaceStreamBase- Specified by:
exceptionHandlerin interfaceWriteStream<T>
-
end
public Future<Void> end()
- Specified by:
endin interfaceWriteStream<T>
-
setWriteQueueMaxSize
public WriteStream<T> setWriteQueueMaxSize(int i)
- Specified by:
setWriteQueueMaxSizein interfaceWriteStream<T>
-
writeQueueFull
public boolean writeQueueFull()
- Specified by:
writeQueueFullin interfaceWriteStream<T>
-
drainHandler
public WriteStream<T> drainHandler(Handler<Void> hndlr)
- Specified by:
drainHandlerin interfaceWriteStream<T>
-
streamObserver
public io.grpc.stub.StreamObserver<T> streamObserver()
Low level control of the observer for advanced use cases.
-
-