R - Return type parameter in process methodpublic interface Function<R>
| Modifier and Type | Method and Description |
|---|---|
void |
init(Map<String,Object> properties,
io.wizzie.metrics.MetricsManager metricsManager)
Initialize function
|
void |
prepare(Map<String,Object> properties,
io.wizzie.metrics.MetricsManager metricsManager)
Initialize function, this method is implemented by the users to for example:
initiate variables, load config, open DB connections.
|
R |
process(String key,
Map<String,Object> value)
Main logic of function
|
void |
stop()
Stop function, this method is implemented by the users to for example: close DB connection
|
void init(Map<String,Object> properties, io.wizzie.metrics.MetricsManager metricsManager)
properties - Properties for functionmetricsManager - MetricsManager object for functionvoid prepare(Map<String,Object> properties, io.wizzie.metrics.MetricsManager metricsManager)
properties - Properties for functionmetricsManager - MetricsManager object for functionR process(String key, Map<String,Object> value)
key - The key of Kafka messagevalue - The value of Kafka messagevoid stop()
Copyright © 2017–2018. All rights reserved.