public class ScriptResult extends Object
Constructor and Description |
---|
ScriptResult()
Constructor of a pending execution.
|
ScriptResult(Object result)
Constructor for a finished execution.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Get the exception stored within this result.
|
Object |
getResult()
Get the result value stored.
|
boolean |
hasException()
Checks whether this result contains an exception.
|
boolean |
isReady()
Verify that this ScriptResult is processed.
|
String |
toString() |
void |
waitForResult()
Blocks execution until the execution result is ready.
|
public ScriptResult()
public ScriptResult(Object result)
result
- result of executionpublic final boolean isReady()
public final void waitForResult()
public final Object getResult()
public final Throwable getException()
public final boolean hasException()