public class JRubyLocalScriptExecutor extends AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
Modifier and Type | Class and Description |
---|---|
static class |
JRubyLocalScriptExecutor.JRubyCompiledScript |
Constructor and Description |
---|
JRubyLocalScriptExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
close(JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript)
Closes the compiled script.
|
JRubyLocalScriptExecutor.JRubyCompiledScript |
doCompile(Script script) |
Object |
execute(Script script,
JRubyLocalScriptExecutor.JRubyCompiledScript 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
public JRubyLocalScriptExecutor.JRubyCompiledScript doCompile(Script script) throws ScriptCompilationException
doCompile
in class AbstractLocalScriptExecutor<JRubyLocalScriptExecutor.JRubyCompiledScript>
ScriptCompilationException
public Object execute(Script script, JRubyLocalScriptExecutor.JRubyCompiledScript compiledScript, Map<String,Object> parameters) throws ScriptExecutionException
LocalScriptExecutor
ScriptExecutionException
public void close(JRubyLocalScriptExecutor.JRubyCompiledScript 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.