Created
February 13, 2020 14:25
-
-
Save schroedermatt/0ba9ba01aca76fe811b16d75250d504d to your computer and use it in GitHub Desktop.
Example showing how to configure the uncaught exception handler.
This file contains hidden or 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
| KafkaStreams streams = new KafkaStreams(topology, config); | |
| // other configurations | |
| streams.setUncaughtExceptionHandler((Thread thread, Throwable throwable) -> { | |
| // examine the throwable and do something | |
| }); | |
| streams.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment