|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalScriptExecutor<T>
An SPI implementation for script executor ("on the server side") that can handle a specific script type (or labguage).
Method Summary | |
---|---|
void |
close(T compiledScript)
Closes the compiled script. |
T |
compile(Script script)
Compiles the given sctipt. |
Object |
execute(Script script,
T 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). |
Method Detail |
---|
T compile(Script script) throws ScriptCompilationException
ScriptCompilationException
Object execute(Script script, T compiledScript, Map<String,Object> parameters) throws ScriptExecutionException
ScriptExecutionException
void close(T compiledScript)
boolean isThreadSafe()
true
if the same compiled script can be used by different threads (note, parameres
or bindings usually make a scripting library not thread safe).
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |