Interface CallShouldBackoff<ResponseT>

All Superinterfaces:
Serializable

public interface CallShouldBackoff<ResponseT> extends Serializable
Informs whether a call to an API should backoff.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Report whether to backoff.
    void
    Update the state of whether to backoff using information about the exception.
    void
    update(ResponseT response)
    Update the state of whether to backoff using information about the response.
  • Method Details

    • update

      void update(UserCodeExecutionException exception)
      Update the state of whether to backoff using information about the exception.
    • update

      void update(ResponseT response)
      Update the state of whether to backoff using information about the response.
    • isTrue

      boolean isTrue()
      Report whether to backoff.