public class Jsr223Engine extends Object implements Engine
| Modifier and Type | Field and Description |
|---|---|
protected ScriptEngine |
engine |
private String |
expression |
private CompiledScript |
script |
| Constructor and Description |
|---|
Jsr223Engine() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String language,
String expression)
Pre-compiles the expression for repeated execution.
|
protected void |
configureEngine() |
boolean |
eval(org.apache.kafka.connect.connector.ConnectRecord<?> record)
Evaluates whether the record matches the predicate expression.
|
private String expression
private CompiledScript script
protected ScriptEngine engine
public void configure(String language, String expression)
Engineprotected void configureEngine()
public boolean eval(org.apache.kafka.connect.connector.ConnectRecord<?> record)
EngineCopyright © 2020 JBoss by Red Hat. All rights reserved.