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