Class SafeResponseObserver<ResponseT>
java.lang.Object
com.google.cloud.bigtable.data.v2.stub.SafeResponseObserver<ResponseT>
- All Implemented Interfaces:
com.google.api.gax.rpc.ResponseObserver<ResponseT>
@InternalApi
public abstract class SafeResponseObserver<ResponseT>
extends Object
implements com.google.api.gax.rpc.ResponseObserver<ResponseT>
Base implementation of
ResponseObserver
that checks the state and catches all the
throwables.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
protected abstract void
final void
protected abstract void
onErrorImpl
(Throwable throwable) final void
onResponse
(ResponseT response) protected abstract void
onResponseImpl
(ResponseT response) final void
onStart
(com.google.api.gax.rpc.StreamController streamController) protected abstract void
onStartImpl
(com.google.api.gax.rpc.StreamController streamController)
-
Constructor Details
-
SafeResponseObserver
public SafeResponseObserver(com.google.api.gax.rpc.ResponseObserver outerObserver)
-
-
Method Details
-
onStart
public final void onStart(com.google.api.gax.rpc.StreamController streamController) - Specified by:
onStart
in interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onResponse
- Specified by:
onResponse
in interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onError
- Specified by:
onError
in interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onComplete
public final void onComplete()- Specified by:
onComplete
in interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onStartImpl
protected abstract void onStartImpl(com.google.api.gax.rpc.StreamController streamController) -
onResponseImpl
-
onErrorImpl
-
onCompleteImpl
protected abstract void onCompleteImpl()
-