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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidprotected abstract voidfinal voidprotected abstract voidonErrorImpl(Throwable throwable) final voidonResponse(ResponseT response) protected abstract voidonResponseImpl(ResponseT response) final voidonStart(com.google.api.gax.rpc.StreamController streamController) protected abstract voidonStartImpl(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:
onStartin interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onResponse
- Specified by:
onResponsein interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onError
- Specified by:
onErrorin interfacecom.google.api.gax.rpc.ResponseObserver<ResponseT>
-
onComplete
public final void onComplete()- Specified by:
onCompletein 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()
-