You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Norbert Kalmár (Jira)" <ji...@apache.org> on 2020/08/06 16:50:00 UTC
[jira] [Resolved] (ZOOKEEPER-3883) new UncaughtExceptionHandler
object with lambda
[ https://issues.apache.org/jira/browse/ZOOKEEPER-3883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norbert Kalmár resolved ZOOKEEPER-3883.
---------------------------------------
Fix Version/s: 3.7.0
Resolution: Fixed
> 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
> Fix For: 3.7.0
>
> Time Spent: 1h 10m
> 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)