TaskInfo

  • TaskInfo is an abstract class that describes a task performed by a driver.

  • It includes key properties like taskId and taskDurationSeconds.

  • Provides methods to build and manipulate TaskInfo objects like builder and toBuilder.

  • Developers can get the task's duration using getTaskDurationSeconds and unique identifier via getTaskId.

public abstract class TaskInfo extends Object

Describes a task that the driver will perform.

Nested Class Summary

class TaskInfo.Builder Builder class for TaskInfo  

Public Constructor Summary

Public Method Summary

static TaskInfo.Builder
builder()
Returns a new default Builder instance.
abstract long
getTaskDurationSeconds()
Returns the time required to perform the task.
abstract String
getTaskId()
Returns the unique identifier of the task.
abstract TaskInfo.Builder
toBuilder()
Returns a new Builder instance set with current task ID and duration.

Inherited Method Summary

Public Constructors

public TaskInfo ()

Public Methods

public static TaskInfo.Builder builder ()

Returns a new default Builder instance.

public abstract long getTaskDurationSeconds ()

Returns the time required to perform the task.

public abstract String getTaskId ()

Returns the unique identifier of the task.

public abstract TaskInfo.Builder toBuilder ()

Returns a new Builder instance set with current task ID and duration.