com.waveset.object
Class TaskDefinition.ExecMode
java.lang.Object
com.waveset.object.TaskDefinition.ExecMode
- Enclosing class:
- TaskDefinition
- public static class TaskDefinition.ExecMode
- extends java.lang.Object
An enumeration class Used for values of the _execMode field.
Also used as an argument to the scheduling interface so end
users can request specific execution styles.
We need at least tri-state logic so we can tell the difference
between an explicit request and letting it default.
- SYNC means that that task will be executed
by the scheduler without launching a new thread.
- ASYNC means that the task will be executed in
the background in its own thread.
- ASYNC_IMMEDIATE means that the task will be executed in
the background in its own thread, and the Scheduler will guarantee
that it will run in the same JVM in which the task launch
variables were defined without serializing them. This can be used
to pass non-serializable things (like InputStreams) to a task.
- DEFAULT means that the way the task is executed
is left to the discression of the system.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SYNC
public static final TaskDefinition.ExecMode SYNC
ASYNC
public static final TaskDefinition.ExecMode ASYNC
ASYNC_IMMEDIATE
public static final TaskDefinition.ExecMode ASYNC_IMMEDIATE
DEFAULT
public static final TaskDefinition.ExecMode DEFAULT
ITEMS
public static final TaskDefinition.ExecMode[] ITEMS
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object obj)
fromString
public static TaskDefinition.ExecMode fromString(java.lang.String name)