|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.remoting.scripting.cache.BlockingQueueCompiledScriptPool
public class BlockingQueueCompiledScriptPool
A BlockingQueue script pool with a configurable size.
Upon initialization the pool compiles "size" scripts and puts it in the queue.
| Constructor Summary | |
|---|---|
BlockingQueueCompiledScriptPool(int size)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the pool. |
Object |
get()
Returns a compiled script from the pool. |
void |
init(LocalScriptExecutor executor,
Script script)
Inits the pool by compiling zero or more scripts. |
void |
put(Object compiledScript)
Puts back a compiled script to the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingQueueCompiledScriptPool(int size)
| Method Detail |
|---|
public void init(LocalScriptExecutor executor,
Script script)
throws ScriptingException
CompiledScriptPoolAlso, the local executor and the script can be store for later compilatation and shutdowm.
init in interface CompiledScriptPoolexecutor - The local script executor to compile the script and close it.script - The script to compile.
ScriptingException
public Object get()
throws ScriptingException
CompiledScriptPool
get in interface CompiledScriptPoolScriptingException
public void put(Object compiledScript)
throws ScriptingException
CompiledScriptPool
put in interface CompiledScriptPoolScriptingExceptionpublic void close()
CompiledScriptPool
close in interface CompiledScriptPool
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||