saker.build Documentation TaskDoc JavaDoc Packages
public interface TaskResultResolver
Container class for retrieving results of an executed task based on its task identifier.

Actual workings of this interface is implementation dependent.

This interface may be implemented by clients.

Methods
public Object
Gets the task result for the given task identifier.
public default TaskResultDependencyHandle
Gets a task result dependency handle for the given task identifier.
Gets the task result for the given task identifier.

Any additional behaviour is implementation dependent.

taskidThe task identifier to retrieve the results for.
The result of the task execution. Might be null if the task was not found, or it returned null as a result.
TaskExecutionExceptionIn case of any exceptions related to the task execution.
IllegalArgumentExceptionOptional exception, if a task result was not found for the given identifier.
NullPointerExceptionIf the argument is null.
Gets a task result dependency handle for the given task identifier.

The retrieval of the handle is implementation dependent. The TaskResultDependencyHandle.get() method may return structured task results.

taskidThe task identifier
The result dependency handle for the given task identifier.
NullPointerExceptionIf the argument is null.
IllegalArgumentExceptionOptional exception, if a task result was not found for the given identifier.