Interface SdkUtils.FuncExecutor<T>

Enclosing class:
SdkUtils

public static interface SdkUtils.FuncExecutor<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    check(T result, int statusCode)
    Define when considering an ApiCallback result as successful.
    void
    execute(@NonNull ApiCallback<T> callback)
    Defines the @see com.redhat.parodos.sdk.invoker.ApiCallback to execute
  • Method Details

    • execute

      void execute(@NonNull @NonNull ApiCallback<T> callback) throws ApiException
      Defines the @see com.redhat.parodos.sdk.invoker.ApiCallback to execute
      Parameters:
      callback - the
      Throws:
      ApiException - If the API callback invocation fails
    • check

      default boolean check(T result, int statusCode)
      Define when considering an ApiCallback result as successful.
      Parameters:
      result - the result to check
      Returns:
      {true} if it is necessary to continue monitoring the result, {false} when it's possible to stop the monitoring.