You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Asutosh Pandya (Jira)" <ji...@apache.org> on 2020/08/01 17:15:00 UTC
[jira] [Comment Edited] (ZOOKEEPER-3883) new
UncaughtExceptionHandler object with lambda
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17169366#comment-17169366 ]
Asutosh Pandya edited comment on ZOOKEEPER-3883 at 8/1/20, 5:14 PM:
--------------------------------------------------------------------
[~ZWShuai91] - Please review
[https://github.com/apache/zookeeper/pull/1408]
was (Author: asutosh_pandya):
[https://github.com/apache/zookeeper/pull/1408]
> new UncaughtExceptionHandler object with lambda
> -----------------------------------------------
>
> Key: ZOOKEEPER-3883
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3883
> Project: ZooKeeper
> Issue Type: Improvement
> Components: server
> Reporter: wenshuai.zhang
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
>
> old
> {code:java}
> public class ZooKeeperThread extends Thread {
> private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperThread.class);
> private UncaughtExceptionHandler uncaughtExceptionalHandler = new UncaughtExceptionHandler() {
> @Override
> public void uncaughtException(Thread t, Throwable e) {
> handleException(t.getName(), e);
> }
> };
> {code}
> new
> {code:java}
> public class ZooKeeperThread extends Thread {
> private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperThread.class);
> private UncaughtExceptionHandler uncaughtExceptionalHandler = (t, e) -> handleException(t.getName(), e);
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)