org.openspaces.remoting.scripting
Class AsyncScriptingProxyConfigurer<T>
java.lang.Object
org.openspaces.remoting.scripting.AsyncScriptingProxyConfigurer<T>
public class AsyncScriptingProxyConfigurer<T>
- extends Object
A simple programmatic configurer creating a remote asyncronous scripting proxy
Usage example:
IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
.space();
GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
ScriptingExecutor executor = new AsyncScriptingProxyConfigurer(gigaSpace)
.timeout(15000)
.asyncScriptingExecutor();
Integer result = executor.execute(new StaticScript()
.type("groovy")
.name("myScript")
.script("return 1")));
- Author:
- Uri Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncScriptingProxyConfigurer
public AsyncScriptingProxyConfigurer(GigaSpace gigaSpace)
- Creates a new
AsyncScriptingProxyConfigurer
on top of the given space
timeout
public AsyncScriptingProxyConfigurer<T> timeout(long timeout)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setTimeout(long)
fifo
public AsyncScriptingProxyConfigurer<T> fifo(boolean fifo)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setFifo(boolean)
asyncScriptingExecutor
public ScriptingExecutor<T> asyncScriptingExecutor()
- Create a new async
ScriptingExecutor
proxy
Copyright © GigaSpaces.