public class ExecutorScriptingProxyConfigurer<T> extends Object
Usage example:
IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace") .space(); GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace(); ScriptingExecutorexecutor = new ExecutorScriptingProxyConfigurer (gigaSpace) .timeout(15000) .scriptingExecutor(); Integer result = executor.execute(new StaticScript() .type("groovy") .name("myScript") .script("return 1"));
Constructor and Description |
---|
ExecutorScriptingProxyConfigurer(GigaSpace gigaSpace)
Creates a new
ExecutorScriptingProxyConfigurer on top of the given space |
Modifier and Type | Method and Description |
---|---|
ScriptingExecutor<T> |
scriptingExecutor()
Create a new executor
ScriptingExecutor proxy |
ExecutorScriptingProxyConfigurer<T> |
timeout(long timeout) |
public ExecutorScriptingProxyConfigurer(GigaSpace gigaSpace)
ExecutorScriptingProxyConfigurer
on top of the given spacepublic ExecutorScriptingProxyConfigurer<T> timeout(long timeout)
public ScriptingExecutor<T> scriptingExecutor()
ScriptingExecutor
proxyCopyright © GigaSpaces.