Created
May 12, 2020 05:15
-
-
Save zorteran/bbb907bc6cc67fe877f091afecd81016 to your computer and use it in GitHub Desktop.
Part of ZtmStream.java
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
... | |
public ZtmStream() { | |
inputTopic = EnvTools.getEnvValue(EnvTools.INPUT_TOPIC, "ztm-input"); | |
outputTopic = EnvTools.getEnvValue(EnvTools.OUTPUT_TOPIC, "ztm-output"); | |
} | |
... | |
private static Properties createProperties() { | |
Properties props = new Properties(); | |
String appIdConfig = EnvTools.getEnvValue(EnvTools.APPLICATION_ID_CONFIG, "wiaderko-ztm-stream"); | |
String bootstrapServersConfig = EnvTools.getEnvValue(EnvTools.BOOTSTRAP_SERVERS_CONFIG, "localhost:29092"); | |
props.put(StreamsConfig.APPLICATION_ID_CONFIG, appIdConfig); | |
props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServersConfig); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment