Class BlockingQueueCompiledScriptPoolFactory
java.lang.Object
org.openspaces.remoting.scripting.cache.BlockingQueueCompiledScriptPoolFactory
- All Implemented Interfaces:
CompiledScriptPoolFactory
public class BlockingQueueCompiledScriptPoolFactory
extends Object
implements CompiledScriptPoolFactory
A compiles script pool factory that create a
BlockingQueueCompiledScriptPool.
Default size of the pool is 5. Meaning the compiled script pool will hold 5 compiled scripts of the same script.
- Author:
- kimchy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new blocking queue compiled script pool with default size of5.BlockingQueueCompiledScriptPoolFactory(int size) Constructs a new blocking queue compiled script pool with its size as a parameter. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Constructs a newBlockingQueueCompiledScriptPoolwith the configured size.
-
Field Details
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
-
-
Constructor Details
-
BlockingQueueCompiledScriptPoolFactory
public BlockingQueueCompiledScriptPoolFactory()Constructs a new blocking queue compiled script pool with default size of5. -
BlockingQueueCompiledScriptPoolFactory
public BlockingQueueCompiledScriptPoolFactory(int size) Constructs a new blocking queue compiled script pool with its size as a parameter.
-
-
Method Details
-
create
Constructs a newBlockingQueueCompiledScriptPoolwith the configured size.- Specified by:
createin interfaceCompiledScriptPoolFactory
-