Class Worker.Builder

java.lang.Object
co.yellowdog.platform.model.Worker.Builder
Enclosing class:
Worker

public static class Worker.Builder extends Object
  • Method Details

    • id

      public Worker.Builder id(String id)
      Returns:
      this.
    • status

      public Worker.Builder status(WorkerStatus status)
      The status of the worker.
      Parameters:
      status - the status of the worker
      Returns:
      this.
    • taskGroupId

      public Worker.Builder taskGroupId(String taskGroupId)
      The ID of the task group that has a claim on the worker. Should only be set if the Worker is exclusively claimed by a single TaskGroup.
      Parameters:
      exclusive - indicates if the worker is exclusively claimed by a single task group
      Returns:
      this.
    • registeredTime

      public Worker.Builder registeredTime(Instant registeredTime)
      The time at which the worker was registered.
      Parameters:
      registeredTime - the time at which the worker was registered
      Returns:
      this.
    • build

      public Worker build()
    • toString

      public String toString()
      Overrides:
      toString in class Object