GigaSpaces XAP 7.0 API

org.openspaces.remoting.scripting
Interface ScriptingExecutor<T>

All Known Implementing Classes:
DefaultScriptingExecutor

public interface ScriptingExecutor<T>

Scripting executor allows to execute Script using remoting. The "server" side implements this interface (with built in implementation of DefaultScriptingExecutor. The client side simply uses either async or sync proxy built on top of this interface.

Author:
kimchy

Method Summary
 Future<T> asyncExecute(Script script)
          Executes the given script and return a future that can be used to read the response at a later stage.
 T execute(Script script)
          Executes the given script and returns a response.
 

Method Detail

execute

T execute(Script script)
          throws ScriptingException
Executes the given script and returns a response.

Throws:
ScriptingException

asyncExecute

Future<T> asyncExecute(Script script)
                       throws ScriptingException
Executes the given script and return a future that can be used to read the response at a later stage.

Note, this only works with "async" remoting.

Throws:
ScriptingException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.