public abstract class ManagedScript
extends java.lang.Object
ScriptManager
to execute.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
Modifier | Constructor and Description |
---|---|
protected |
ManagedScript(ScriptManager scriptManager,
ManagedScriptBaseProperties properties,
com.fasterxml.jackson.databind.ObjectMapper mapper,
io.micrometer.core.instrument.MeterRegistry registry) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
evaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters) |
void |
warmUp()
Request the script to be warm and ready for evaluation.
|
protected ManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, com.fasterxml.jackson.databind.ObjectMapper mapper, io.micrometer.core.instrument.MeterRegistry registry)
public void warmUp()
protected java.lang.Object evaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters) throws ScriptExecutionException, ScriptNotConfiguredException