GigaSpaces XAP 10.0.1 API

org.openspaces.remoting.scripting
Class EventDrivenScriptingProxyConfigurer<T>

java.lang.Object
  extended by org.openspaces.remoting.scripting.EventDrivenScriptingProxyConfigurer<T>

public class EventDrivenScriptingProxyConfigurer<T>
extends Object

A simple programmatic configurer creating a remote event driven scripting proxy

Usage example:

 IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
                        .space();
 GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
 ScriptingExecutor executor = new EventDrivenScriptingProxyConfigurer(gigaSpace)
                                       .timeout(15000)
                                       .scriptingExecutor();
 Integer result = executor.execute(new StaticScript()
                  .type("groovy")
                  .name("myScript")
                  .script("return 1"));
 

Author:
Uri Cohen

Constructor Summary
EventDrivenScriptingProxyConfigurer(GigaSpace gigaSpace)
          Creates a new AsyncScriptingProxyConfigurer on top of the given space
 
Method Summary
 EventDrivenScriptingProxyConfigurer<T> fifo(boolean fifo)
           
 ScriptingExecutor<T> scriptingExecutor()
          Create a new event driven ScriptingExecutor proxy
 EventDrivenScriptingProxyConfigurer<T> timeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDrivenScriptingProxyConfigurer

public EventDrivenScriptingProxyConfigurer(GigaSpace gigaSpace)
Creates a new AsyncScriptingProxyConfigurer on top of the given space

Method Detail

timeout

public EventDrivenScriptingProxyConfigurer<T> timeout(long timeout)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setTimeout(long)

fifo

public EventDrivenScriptingProxyConfigurer<T> fifo(boolean fifo)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setFifo(boolean)

scriptingExecutor

public ScriptingExecutor<T> scriptingExecutor()
Create a new event driven ScriptingExecutor proxy


GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.