Interface RpcResult<T>

  • Type Parameters:
    T - the result value type

    public interface RpcResult<T>
    Represents a general result of a call, request, or operation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NonNull List<RpcError> getErrors()
      Returns a set of errors and warnings which occurred during processing the call.
      T getResult()
      Returns the value result of the call or null if no result is available.
      boolean isSuccessful()
      Returns whether or not processing of the call was successful.
    • Method Detail

      • isSuccessful

        boolean isSuccessful()
        Returns whether or not processing of the call was successful.
        Returns:
        true if processing was successful, false otherwise.
      • getResult

        T getResult()
        Returns the value result of the call or null if no result is available.
      • getErrors

        @NonNull List<RpcError> getErrors()
        Returns a set of errors and warnings which occurred during processing the call.
        Returns:
        a list of RpcErrors