TaskInfo

  • TaskInfo describes a task to be performed by a driver, containing information like task duration and a unique ID.

  • It includes methods to get the task duration (getTaskDurationSeconds), the task ID (getTaskId), and create a builder for TaskInfo instances.

  • A Builder class (TaskInfo.Builder) is available to construct TaskInfo objects.

  • The toBuilder method allows creating a new builder pre-populated with existing task data for modifications.

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.