Class LogEntry.State

java.lang.Object
ch.tocco.nice2.tasks.api.progress.LogEntry.State
Enclosing interface:
LogEntry

public static class LogEntry.State extends Object
Additional state of a log entry to the flag `failed` or `completed`.
  • Field Details

  • Method Details

    • withDetails

      public LogEntry.State withDetails(String details)
    • withTaskState

      public LogEntry.State withTaskState(String state)
    • getDetails

      public String getDetails()
      Get the details of the log entry.
    • getTaskState

      public String getTaskState()
      Return the task's state associated to this log entry. This is some arbitrary value set by the task itself. It is not propagated to any ui, but a task can use this to store its current state, so when it is re-invoked after a system crash (for example) it can start from the last known state.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object