public abstract class MasterSessionTask
extends java.lang.Object
Constructor and Description |
---|
MasterSessionTask(WGDatabase db)
Construct a master session task for a specific database
|
MasterSessionTask(WGDatabase db,
boolean allowInline)
Construct a master session task for a specific database
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getResult()
Retrieves a result object that may be set by the MasterSessionTask
|
java.lang.Throwable |
getThrowable()
Returns an exception that was thrown in the task when started with
run() |
boolean |
run()
Run the task.
|
void |
runWithExceptions()
Run the task.
|
void |
setResult(java.lang.Object result)
Sets the result of this task.
|
public MasterSessionTask(WGDatabase db)
db
- public MasterSessionTask(WGDatabase db, boolean allowInline)
db
- The databaseallowInline
- Specify true if the task may also be executed in the current thread if a master session is already openpublic boolean run()
getThrowable()
public void runWithExceptions() throws java.lang.Throwable
java.lang.Throwable
public java.lang.Throwable getThrowable()
run()
public java.lang.Object getResult()
public void setResult(java.lang.Object result)