Class TaskResult

  • All Implemented Interfaces:
    Serializable

    public final class TaskResult
    extends Object
    implements Serializable
    This class describes the result of long-running task. Like a Future, constructed at the time of task completion.
    Author:
    keshav
    See Also:
    Serialized Form
    • Constructor Detail

      • TaskResult

        public TaskResult​(String taskId)
    • Method Detail

      • getAnswer

        public Object getAnswer()
      • getException

        public Exception getException()
        Returns:
        the exception
      • getTaskId

        public String getTaskId()
      • setException

        public void setException​(Exception exception)
        Parameters:
        exception - the exception to set