public class GroovyLocalScriptExecutor extends AbstractLocalScriptExecutor<groovy.lang.Script>
Constructor and Description |
---|
GroovyLocalScriptExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
close(groovy.lang.Script compiledScript)
Closes the compiled script.
|
protected groovy.lang.Script |
doCompile(Script script) |
Object |
execute(Script script,
groovy.lang.Script compiledScript,
Map<String,Object> parameters)
Executes the given compiled script.
|
boolean |
isThreadSafe()
Returns
true if the same compiled script can be used by different threads (note,
parameres or bindings usually make a scripting library not thread safe). |
compile
protected groovy.lang.Script doCompile(Script script) throws ScriptCompilationException
doCompile
in class AbstractLocalScriptExecutor<groovy.lang.Script>
ScriptCompilationException
public Object execute(Script script, groovy.lang.Script compiledScript, Map<String,Object> parameters) throws ScriptExecutionException
LocalScriptExecutor
ScriptExecutionException
public void close(groovy.lang.Script compiledScript)
LocalScriptExecutor
public boolean isThreadSafe()
LocalScriptExecutor
true
if the same compiled script can be used by different threads (note,
parameres or bindings usually make a scripting library not thread safe).Copyright © GigaSpaces.