public interface WriteResult
The result of a SignalStorage write operation.
  • Method Details

    • isSuccessful

      boolean isSuccessful()
      Whether the operation succeeded or not.
      Returns:
      `true` if the items have been successfully stored, `false` otherwise.
    • getError

      @Nullable Throwable getError()
      Provides details of why the operation failed.
      Returns:
      The error (if any) for the failed operation. It must be null for successful operations.
    • successful

      static WriteResult successful()
    • error

      static WriteResult error(@Nullable Throwable t)