class ScriptContext.ScriptRunner
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Exception |
exception |
(package private) java.lang.String |
newThreadName |
Constructor and Description |
---|
ScriptRunner(java.lang.String newThreadName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Holds an
Exception , if one occurs. |
void |
run()
Executes the script.
|
void |
terminate()
Terminates execution of the script prematurely.
|
@Nullable java.lang.Exception exception
@Nullable java.lang.String newThreadName
public ScriptRunner(@Nullable java.lang.String newThreadName)
public void run()
run
in interface java.lang.Runnable
public void terminate()
@Nullable public java.lang.Exception getException()
Exception
, if one occurs. Returns null, otherwise.