T - the type of value returned by this streampublic class SynchronizedRequestStream<T>
extends io.grpc.stub.ClientCallStreamObserver<T>
ClientCallStreamObserver. Acts as a wrapper of another ClientCallStreamObserver, to which all of operations will be delegated, adding synchronization logic to onNext(Object), onCompleted() and onError(Throwable).| Constructor and Description |
|---|
SynchronizedRequestStream(io.grpc.stub.ClientCallStreamObserver<T> requestStream)
Instantiate a
SynchronizedRequestStream, delegating all operations to the given requestStream |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String message,
Throwable cause) |
void |
disableAutoInboundFlowControl() |
void |
disableAutoRequestWithInitial(int request) |
boolean |
isReady() |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(T value) |
void |
request(int count) |
void |
setMessageCompression(boolean enable) |
void |
setOnReadyHandler(Runnable onReadyHandler) |
public SynchronizedRequestStream(io.grpc.stub.ClientCallStreamObserver<T> requestStream)
SynchronizedRequestStream, delegating all operations to the given requestStreamrequestStream - the ClientCallStreamObserver to delegate method invocations topublic void cancel(String message, Throwable cause)
cancel in class io.grpc.stub.ClientCallStreamObserver<T>public boolean isReady()
isReady in class io.grpc.stub.ClientCallStreamObserver<T>public void setOnReadyHandler(Runnable onReadyHandler)
setOnReadyHandler in class io.grpc.stub.ClientCallStreamObserver<T>public void disableAutoInboundFlowControl()
disableAutoInboundFlowControl in class io.grpc.stub.CallStreamObserver<T>public void request(int count)
request in class io.grpc.stub.ClientCallStreamObserver<T>public void setMessageCompression(boolean enable)
setMessageCompression in class io.grpc.stub.ClientCallStreamObserver<T>public void onNext(T value)
public void disableAutoRequestWithInitial(int request)
disableAutoRequestWithInitial in class io.grpc.stub.ClientCallStreamObserver<T>public void onError(Throwable t)
public void onCompleted()
Copyright © 2020–2022 AxonIQ BV. All rights reserved.