## Uses of Class
de.esprit.common.anno.ThreadSafe

- Packages that use ThreadSafe
  Package | Description
  --- | ---
  de.esprit.appsuite.task | Contains basic classes that make up the AsyncTask framework
  de.esprit.netsuite.netdata | Contains serializable objects which are interchanged between client and server
  de.esprit.netsuite.netdata.agent | Contains base classes for implementing custom network agents
  de.esprit.netsuite.rtask | Contains extensions for RemoteAsyncTask support

- - ### Uses of ThreadSafe in de.esprit.appsuite.task

    Classes in de.esprit.appsuite.task with annotations of type ThreadSafe
    Modifier and Type | Class and Description
    --- | ---
    `class` | `RunStateFlag` This flag is used to track the `RunState` of a running `AsyncTask`.

    Methods in de.esprit.appsuite.task with annotations of type ThreadSafe
    Modifier and Type | Method and Description
    --- | ---
    `void` | LocalCancellableTask.`cancel()` Cancels the running task.
    `java.lang.Exception` | AsyncTask.`getError()` Returns the execution error of this task which is only available if the task failed.
    `int` | AbstractAsyncExecutable.`getProgressStepCount()` Returns the number of progress steps notified during the last run.
    `<R> R` | AsyncExecutable.`getResult()` Returns the execution result of this task, if any.
    `boolean` | AsyncTask.`hasError()` Tells whether the task failed and contains an execution error
    `boolean` | AsyncExecutable.`isCancellable()` Tells whether this task can be cancelled.
    `boolean` | AsyncTask.`isRunning()` Returns true from the time on the task has been submitted until it has finished.
    `protected void` | AbstractAsyncExecutable.`resetProgress()`
    `void` | AsyncExecutable.`setCancellable(boolean isCancellable)` Tells whether this task is cancellable - is true by default.
    `void` | AsyncExecutable.`setResult(java.lang.Object obj)` Stores the execution result of this instance
    `boolean` | CancellableTask.`wasCancelled()` Tells whether ever an attempt has been made to cancel this task.

  - ### Uses of ThreadSafe in de.esprit.netsuite.netdata

    Methods in de.esprit.netsuite.netdata with annotations of type ThreadSafe
    Modifier and Type | Method and Description
    --- | ---
    `UserId` | SessionId.`getUserId()`
    `void` | SessionId.`setUserId(UserId userId)`

  - ### Uses of ThreadSafe in de.esprit.netsuite.netdata.agent

    Methods in de.esprit.netsuite.netdata.agent with annotations of type ThreadSafe
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractAgent.`setCancelledBy(SessionId killerSessId)` Marks the agent to be cancelled without performing any further cancel action.
    `boolean` | AbstractAgent.`wasCancelled()`

  - ### Uses of ThreadSafe in de.esprit.netsuite.rtask

    Classes in de.esprit.netsuite.rtask with annotations of type ThreadSafe
    Modifier and Type | Class and Description
    --- | ---
    `class` | `RemoteRunStateFlag` This flag is used to track the state of remote running tasks.

    Methods in de.esprit.netsuite.rtask with annotations of type ThreadSafe
    Modifier and Type | Method and Description
    --- | ---
    `void` | RemoteCancellableTask.`cancel(SessionId killerSessId)` Cancels the running task and stores the `SessionId` of the killer.
    `SessionId` | RemoteCancellableTask.`getKillerSessionId()` Returns the `SessionId` of the one who cancelled this task

Copyright © 2014 EsprIT-Systems. All Rights Reserved.