# Package de.esprit.appsuite.task

Contains basic classes that make up the AsyncTask framework

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  AsyncExecutable<C extends ApplicationContext> | Any class that implements this interface is able to be executed as a sub-task within an `AsyncTask`.
  AsyncTask<C extends ApplicationContext> | This interface defines an asynchronous task that may run in any `ExecutorService`.
  CancellableTask | This interface defines a the method for determining the cancellation state of a task.
  LocalCancellableTask | This interface is implemented by tasks that can be cancelled.
  TaskEvent.Listener |
  TaskEvent.Source |
  TaskIdHolder | Is implemented by all async components that hold a `TaskId`.
  TaskType | This interface defines the type of an `AsyncTask`

- Class Summary
  Class | Description
  --- | ---
  AbstractAsyncExecutable<C extends ApplicationContext> | This is a default implementation of `AsyncExecutable` used for subclassing.
  AbstractAsyncTask<C extends ApplicationContext> | This class encapsulates an asynchronously running task that is being executed within any `ExecutorService`.
  AbstractTaskType | This interface defines the type of an `AsyncTask`
  AbstractTimerTask<C extends ApplicationContext> | This is a task just running as a timer.
  CancelTimer | This class is for testing purposes only.
  DebugTaskListener | This class is just for testing task notifications
  DebugTaskMonitor<C extends ApplicationContext> | This class is just for testing task notifications
  DefaultTaskMonitor<C extends ApplicationContext> | This is a `TaskMonitor` template with empty default implementations.
  ExecutorTask<C extends ApplicationContext> | This is a helper-task that just executes any `AsyncExecutable` as a sub-task.
  LocalTaskType | Defines the various types of asynchronous local tasks.
  ProgressFireAdapter | This class delegates PROGRESS messages to a target task.
  ProgressWindowExecutorTask<C extends ApplicationContext> | This class ...
  PseudoTaskId | This is a pseudo-TaskId which is used to track sub-tasks that run synchronous within a main-task.
  RunStateFlag | This flag is used to track the `RunState` of a running `AsyncTask`.
  SwingExecutorTask<C extends ApplicationContext> | This is just an `ExecutorTask` with a build in `SwingTaskMonitor`.
  TaskAction<C extends ApplicationContext> | This action runs a monitored `AsyncTask` created by `TaskAction.createTask()`.
  TaskCancelAction<C extends ApplicationContext> | This Notify allows for canceling a `AsyncTask` running with a `SwingTaskMonitor`.
  TaskCollection<C extends ApplicationContext> | This is a (main) task that runs a list of `AsyncExecutable`s as sub-tasks in a serie.
  TaskEvent | This event is used for notifying the state changes and the progress of an asynchronously running `AsyncTask` instance.
  TaskId | This is a unique identifier for an `AsyncTask` instance.
  TaskUtil | This utility class provides static helper methods for the `AsyncTask` framework.
  WatchDogTask<C extends ApplicationContext> | This task watches for the timeout of another task.

- Enum Summary
  Enum | Description
  --- | ---
  RunState | This class defines the possible states of running asynchronous tasks
  TaskState | This enum defines the states of a `TaskId`

- Exception Summary
  Exception | Description
  --- | ---
  StopException | This Exception may be thrown in order to terminate a task immediately.
  TaskCancelledAlreadyException | Is thrown by an `AsyncTask` when an attempt was made to cancel it, but the task's inner Future reference had already been cancelled before.
  TaskExecutionException | This Exception is thrown when a fatal runtime error such as `OutOfMemoryError` occurred during task execution.
  TaskFinishTimeoutException | This Exception is thrown when a task was started but did not finish in time.
  TaskNotCancellableException | This Exception is thrown by a `AsyncTask` if an attempt was made to cancel it, but the task was currently in a critical, non-cancellable state.
  TaskReleaseTimeoutException | This Exception is thrown when a task started but was not released in time.

## Package de.esprit.appsuite.task Description

Contains basic classes that make up the AsyncTask framework

Copyright © 2014 EsprIT-Systems. All Rights Reserved.