public class StreamObserverAdapter<T>
extends io.grpc.ClientCall.Listener<T>
StreamObserver
to a ClientCall.Listener
.
ClientCall.request(int)
will be called onNext.Constructor and Description |
---|
StreamObserverAdapter(io.grpc.ClientCall<?,T> call,
io.grpc.stub.StreamObserver<T> observer)
Constructor for StreamObserverAdapter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasStatusBeenRecieved() |
void |
onClose(io.grpc.Status status,
io.grpc.Metadata trailers) |
void |
onMessage(T message) |
public void onMessage(T message)
onMessage
in class io.grpc.ClientCall.Listener<T>
public void onClose(io.grpc.Status status, io.grpc.Metadata trailers)
onClose
in class io.grpc.ClientCall.Listener<T>
public boolean hasStatusBeenRecieved()
onClose(Status, Metadata)
was called.