|
@@ -82,11 +82,7 @@ public class NIOServerCnxnFactory extends ServerCnxnFactory {
|
|
|
public static final String ZOOKEEPER_NIO_SHUTDOWN_TIMEOUT = "zookeeper.nio.shutdownTimeout";
|
|
|
|
|
|
static {
|
|
|
- Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
|
|
- public void uncaughtException(Thread t, Throwable e) {
|
|
|
- LOG.error("Thread {} died", t, e);
|
|
|
- }
|
|
|
- });
|
|
|
+ Thread.setDefaultUncaughtExceptionHandler((t, e) -> LOG.error("Thread {} died", t, e));
|
|
|
|
|
|
/**
|
|
|
* Value of 0 disables use of direct buffers and instead uses
|