Interface D1Task.ConfigCallback<T>

  • Type Parameters:
    T - The type of the returning data.
    Enclosing class:
    D1Task

    public static interface D1Task.ConfigCallback<T>
    Configuration callback to return result of an asynchronous call.
    Since:
    1.0.0
    • Method Detail

      • onSuccess

        void onSuccess​(@Nullable
                       T data)
        The request has been successfully executed.
        Parameters:
        data - The result of the request. This argument is always null.
      • onError

        void onError​(@NonNull
                     List<D1Exception> exceptions)
        The request failed while executing.
        Parameters:
        exceptions - The cause of the failures.