@InternalApi(value="For internal usage only")
public class CallController<RequestT,ResponseT>
extends io.grpc.stub.ClientCallStreamObserver<RequestT>
ClientCall
, and implements ClientCallStreamObserver
to allow access to
the call's underlying functionality.
For internal use only - public for technical reasons.
Constructor and Description |
---|
CallController() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String s,
Throwable throwable) |
void |
disableAutoInboundFlowControl()
Disable automatic calls to
ClientCall.request(int) , and the user will explicitly
request more results using request(int) . |
boolean |
isAutoFlowControlEnabled() |
boolean |
isReady() |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(RequestT value) |
void |
request(int count) |
void |
setMessageCompression(boolean enable) |
void |
setOnReadyHandler(Runnable onReadyHandler) |
public void onNext(RequestT value)
public void onError(Throwable t)
public void onCompleted()
public boolean isReady()
isReady
in class io.grpc.stub.CallStreamObserver<RequestT>
public void setOnReadyHandler(Runnable onReadyHandler)
setOnReadyHandler
in class io.grpc.stub.CallStreamObserver<RequestT>
public void disableAutoInboundFlowControl()
ClientCall.request(int)
, and the user will explicitly
request more results using request(int)
. Currently, this is only used for reading
rows.disableAutoInboundFlowControl
in class io.grpc.stub.CallStreamObserver<RequestT>
ResponseQueueReader.beforeStart(ClientCallStreamObserver)
,
ResponseQueueReader.getNextMergedRow()
public void request(int count)
request
in class io.grpc.stub.CallStreamObserver<RequestT>
public void setMessageCompression(boolean enable)
setMessageCompression
in class io.grpc.stub.CallStreamObserver<RequestT>
public void cancel(@Nullable String s, @Nullable Throwable throwable)
cancel
in class io.grpc.stub.ClientCallStreamObserver<RequestT>
public boolean isAutoFlowControlEnabled()