Class WorkResult<R>

  • Type Parameters:
    R - result

    public final class WorkResult<R>
    extends Object
    Author:
    pchretien
    • Field Detail

      • workId

        public final String workId
      • result

        public final R result
    • Constructor Detail

      • WorkResult

        public WorkResult​(String workId,
                          R result,
                          Throwable error)
        Constructor. Must set Result or Error, other must be null.
        Parameters:
        workId - Work id
        result - Work result (null if error)
        error - Work error (null if result)