mjsax commented on code in PR #16247:
URL: https://github.com/apache/kafka/pull/16247#discussion_r1631704904
##########
docs/streams/developer-guide/write-streams.html:
##########
@@ -152,17 +152,20 @@ <h2>Using Kafka Streams within your application code<a
class="headerlink" href="
<p>To catch any unexpected exceptions, you can set an <code
class="docutils literal"><span
class="pre">java.lang.Thread.UncaughtExceptionHandler</span></code> before you
start the
application. This handler is called whenever a stream thread is
terminated by an unexpected exception:</p>
<pre class="line-numbers"><code class="language-java">// Java 8+,
using lambda expressions
-streams.setUncaughtExceptionHandler((Thread thread, Throwable throwable) ->
{
- // here you should examine the throwable/exception and perform an
appropriate action!
-});
+streams.setUncaughtExceptionHander((exception) ->
StreamsUncaughtExceptionHandler.StreamThreadExceptionResponse.REPLACE_THREAD);
+// Java 7, using a concrete implementation
Review Comment:
Should we remove the Java 7 example? Java 7 is not supported any longer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]