Package ubic.gemma.core.job
Class TaskResult
- java.lang.Object
-
- ubic.gemma.core.job.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 Summary
Constructors Constructor Description TaskResult(String taskId, Serializable answer)
TaskResult(String taskId, Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializable
getAnswer()
Exception
getException()
String
getTaskId()
-
-
-
Constructor Detail
-
TaskResult
public TaskResult(String taskId, @Nullable Serializable answer)
-
-
Method Detail
-
getTaskId
public String getTaskId()
-
getAnswer
@Nullable public Serializable getAnswer()
-
-