com.waveset.object
Class TaskDefinition.ExecMode

java.lang.Object
  extended bycom.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.

  1. SYNC means that that task will be executed by the scheduler without launching a new thread.
  2. ASYNC means that the task will be executed in the background in its own thread.
  3. 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.
  4. DEFAULT means that the way the task is executed is left to the discression of the system.


Field Summary
static TaskDefinition.ExecMode ASYNC
           
static TaskDefinition.ExecMode ASYNC_IMMEDIATE
           
static TaskDefinition.ExecMode DEFAULT
           
static TaskDefinition.ExecMode[] ITEMS
           
static TaskDefinition.ExecMode SYNC
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static TaskDefinition.ExecMode fromString(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

fromString

public static TaskDefinition.ExecMode fromString(java.lang.String name)