Send feedback
Class SafeResponseObserver<ResponseT> (2.17.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public abstract class SafeResponseObserver<ResponseT> implements ResponseObserver<ResponseT>
Base implementation of ResponseObserver that checks the state and catches all the
throwables.
Implements
com.google.api.gax.rpc.ResponseObserver<ResponseT>
Type Parameter
Constructors
SafeResponseObserver(ResponseObserver outerObserver)
public SafeResponseObserver ( ResponseObserver outerObserver )
Parameter
Methods
onComplete()
public final void onComplete ()
onCompleteImpl()
protected abstract void onCompleteImpl ()
onError(Throwable throwable)
public final void onError ( Throwable throwable )
Parameter
onErrorImpl(Throwable throwable)
protected abstract void onErrorImpl ( Throwable throwable )
Parameter
onResponse(ResponseT response)
public final void onResponse ( ResponseT response )
Parameter
Name Description response ResponseT
onResponseImpl(ResponseT response)
protected abstract void onResponseImpl ( ResponseT response )
Parameter
Name Description response ResponseT
onStart(StreamController streamController)
public final void onStart ( StreamController streamController )
Parameter
onStartImpl(StreamController streamController)
protected abstract void onStartImpl ( StreamController streamController )
Parameter
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[],[]]