public class GraalJsEngine extends Jsr223Engine
ProxyObjects, allowing for
simplified property references.https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/proxy/ProxyObject.htmlengine| Constructor and Description |
|---|
GraalJsEngine() |
| Modifier and Type | Method and Description |
|---|---|
private org.graalvm.polyglot.proxy.ProxyObject |
asProxyObject(Map<String,?> map)
Exposes the given Map as a
ProxyObject, allowing for simplified
property reference. |
private org.graalvm.polyglot.proxy.ProxyObject |
asProxyObject(org.apache.kafka.connect.data.Struct struct)
Exposes the given struct as a
ProxyObject, allowing for simplified
property references, also providing any write access. |
protected void |
configureEngine() |
protected RecordHeader |
header(org.apache.kafka.connect.header.Header header) |
protected Object |
headers(org.apache.kafka.connect.connector.ConnectRecord<?> record) |
protected Object |
key(org.apache.kafka.connect.connector.ConnectRecord<?> record) |
protected Object |
value(org.apache.kafka.connect.connector.ConnectRecord<?> record) |
configure, doHeaders, eval, getBindingsprotected void configureEngine()
configureEngine in class Jsr223Engineprotected Object key(org.apache.kafka.connect.connector.ConnectRecord<?> record)
key in class Jsr223Engineprotected Object value(org.apache.kafka.connect.connector.ConnectRecord<?> record)
value in class Jsr223Engineprotected Object headers(org.apache.kafka.connect.connector.ConnectRecord<?> record)
headers in class Jsr223Engineprotected RecordHeader header(org.apache.kafka.connect.header.Header header)
header in class Jsr223Engineprivate org.graalvm.polyglot.proxy.ProxyObject asProxyObject(org.apache.kafka.connect.data.Struct struct)
ProxyObject, allowing for simplified
property references, also providing any write access.Copyright © 2020 JBoss by Red Hat. All rights reserved.