Class ScriptProcessor<K,V,R>

java.lang.Object
com.tangosol.util.AbstractScript
com.tangosol.util.processor.ScriptProcessor<K,V,R>
Type Parameters:
K - the type of the Map entry key
V - the type of the Map entry value
R - the type of value returned by the InvocableMap.EntryProcessor
All Implemented Interfaces:
ExternalizableLite, PortableObject, InvocableMap.EntryProcessor<K,V,R>, Serializable

public class ScriptProcessor<K,V,R> extends AbstractScript implements InvocableMap.EntryProcessor<K,V,R>
ScriptProcessor is an InvocableMap.EntryProcessor that wraps a script written in one of the languages supported by Graal VM.
Since:
14.1.1.0
Author:
mk 2019.07.26
See Also:
  • Constructor Details

    • ScriptProcessor

      public ScriptProcessor()
      Default constructor for deserialization.
    • ScriptProcessor

      public ScriptProcessor(String language, String name, Object... args)
      Create a ScriptProcessor that wraps a script written in the specified language and identified by the specified name. The specified args will be passed during execution of the script.
      Parameters:
      language - the language the script is written. Currently, only "js" (for JavaScript) is supported
      name - the name of the InvocableMap.EntryProcessor that needs to be executed
      args - the arguments to be passed to the InvocableMap.EntryProcessor
  • Method Details