Interface TaskEntry.OperationalStrategy<ScopeT>

Enclosing interface:
TaskEntry<ScopeT>

public static interface TaskEntry.OperationalStrategy<ScopeT>
An operational strategy, which defines a list of tasks.
  • Method Details

    • doFindScope

      default Optional<ScopeT> doFindScope(TaskEntry<ScopeT> taskEntry)
      Finds the scope of the task entry.
      Parameters:
      taskEntry -
      Returns:
    • doGetTasksImmutable

      default Map<TaskId,TransactionalTask> doGetTasksImmutable(TaskEntry<ScopeT> taskEntry)
      Gets the TransactionalTasks associated with this entry.
      Parameters:
      taskEntry -
      Returns:
    • doAddTask

      default boolean doAddTask(TaskEntry<ScopeT> taskEntry, TaskId taskId, long timestamp)
      Implements the add task operation.
      Parameters:
      taskEntry - the task entry
      taskId - the task ID
      timestamp - the timestamp
    • doDeleteTask

      default boolean doDeleteTask(TaskEntry<ScopeT> taskEntry, TaskId taskId)
      Deletes the task with the supplied TaskId.
      Parameters:
      taskEntry - the task entry
      taskId - the task ID
    • doDelete

      default boolean doDelete(TaskEntry<ScopeT> taskEntry)
      Clears the TaskEntry<ScopeT>
      Parameters:
      taskEntry -
      Returns: