Created
May 24, 2018 14:22
-
-
Save mykidong/0f23817da98118e0f713153c41c3a426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onEvent(EventLog eventLog, long l, boolean b) throws Exception { | |
String topic = eventLog.getEventType(); | |
String json = eventLog.getValue(); | |
// send event log to kafka. | |
if (this.sendMessageEnabled) { | |
producer.send(new ProducerRecord<Integer, String>(topic, json)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.