Class ZooKeeperThread

java.lang.Object
java.lang.Thread
org.apache.zookeeper.server.ZooKeeperThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
LearnerHandler, NIOServerCnxnFactory.SelectorThread, QuorumCnxManager.Listener, QuorumPeer, ZooKeeperCriticalThread

public class ZooKeeperThread extends Thread
This is the main class for catching all the uncaught exceptions thrown by the threads.
  • Constructor Details

    • ZooKeeperThread

      public ZooKeeperThread(String threadName)
  • Method Details

    • handleException

      protected void handleException(String thName, Throwable e)
      This will be used by the uncaught exception handler and just log a warning message and return.
      Parameters:
      thName - - thread name
      e - - exception object