org.openspaces.remoting.scripting
Class Jsr223LocalScriptExecutor
java.lang.Object
org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<Object>
org.openspaces.remoting.scripting.Jsr223LocalScriptExecutor
- All Implemented Interfaces:
- LocalScriptExecutor<Object>
public class Jsr223LocalScriptExecutor
- extends AbstractLocalScriptExecutor<Object>
Java 6 (JSR 223) script executor.
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jsr223LocalScriptExecutor
public Jsr223LocalScriptExecutor()
doCompile
public Object doCompile(Script script)
throws ScriptCompilationException
- Specified by:
doCompile
in class AbstractLocalScriptExecutor<Object>
- Throws:
ScriptCompilationException
execute
public Object execute(Script script,
Object compiledScript,
Map<String,Object> parameters)
throws ScriptExecutionException
- Description copied from interface:
LocalScriptExecutor
- Executes the given compiled script.
- Throws:
ScriptExecutionException
close
public void close(Object compiledScript)
- Description copied from interface:
LocalScriptExecutor
- Closes the compiled script.
isThreadSafe
public boolean isThreadSafe()
- Description copied from interface:
LocalScriptExecutor
- 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).
Copyright © GigaSpaces.