-
public interface EvaluationContextCallbackCallback 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
-
-
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.
-
-
-
-