Class Jsr223LocalScriptExecutor
java.lang.Object
org.openspaces.remoting.scripting.AbstractLocalScriptExecutor<Object>
org.openspaces.remoting.scripting.Jsr223LocalScriptExecutor
- All Implemented Interfaces:
LocalScriptExecutor<Object>
Java 6 (JSR 223) script executor.
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the compiled script.Executes the given compiled script.booleanReturnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).Methods inherited from class org.openspaces.remoting.scripting.AbstractLocalScriptExecutor
compile
-
Constructor Details
-
Jsr223LocalScriptExecutor
public Jsr223LocalScriptExecutor()
-
-
Method Details
-
doCompile
- Specified by:
doCompilein classAbstractLocalScriptExecutor<Object>- Throws:
ScriptCompilationException
-
execute
public Object execute(Script script, Object compiledScript, Map<String, Object> parameters) throws ScriptExecutionExceptionDescription copied from interface:LocalScriptExecutorExecutes the given compiled script.- Throws:
ScriptExecutionException
-
close
Description copied from interface:LocalScriptExecutorCloses the compiled script. -
isThreadSafe
public boolean isThreadSafe()Description copied from interface:LocalScriptExecutorReturnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).
-