Class TaskRecord

java.lang.Object
ortus.boxlang.runtime.async.tasks.TaskRecord

public class TaskRecord extends Object
The task record holds all the information of a living task in the scheduler.
  • Field Details

    • name

      public String name
      Task name
    • group

      public String group
      Task group
    • task

      public ScheduledTask task
      The task object
    • future

      public ScheduledFuture<?> future
      The future object for the task
    • scheduledAt

      public LocalDateTime scheduledAt
      The scheduled date for the task
    • registeredAt

      public LocalDateTime registeredAt
      The registered date for the task
    • disabled

      public Boolean disabled
      If the task is disabled
    • error

      public Boolean error
      If the task errored out when scheduling
    • errorMessage

      public String errorMessage
      The error message if any
    • stacktrace

      public String stacktrace
      The stacktrace if any
    • inetHost

      public String inetHost
      The inet host
    • localIp

      public String localIp
      The inet address
  • Constructor Details

    • TaskRecord

      public TaskRecord(String name, String group, ScheduledTask task)
      Construct the record
      Parameters:
      name - The name of the task
      group - The group of the task
      task - The task object
  • Method Details

    • asStruct

      public IStruct asStruct()
      Return the record as a struct