Package 

Interface EvaluationContextCallback


  • 
    public interface EvaluationContextCallback
    
                        

    Callback interface for asynchronous evaluation context update operations.

    This callback is invoked on a background thread after the FlagsClient.setEvaluationContext operation completes. The callback is guaranteed to be invoked after the corresponding FlagsClientState transition.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSuccess() Invoked when the evaluation context update completes successfully.
      abstract Unit onFailure(Throwable error) Invoked when the evaluation context update fails.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSuccess

         abstract Unit onSuccess()

        Invoked when the evaluation context update completes successfully.

        This method is called on a background executor thread after the state transitions to FlagsClientState.Ready. The new flag evaluations are now available for subsequent flag resolution calls.

      • onFailure

         abstract Unit onFailure(Throwable error)

        Invoked when the evaluation context update fails.

        This method is called on a background executor thread after the state transitions to either FlagsClientState.Stale (network failed but cached flags available) or FlagsClientState.Error (network failed with no cached flags).

        Parameters:
        error - A Throwable containing details about the failure, typically including a message explaining the network request failure.