Class ZooKeeperCriticalThread

java.lang.Object
java.lang.Thread
org.apache.zookeeper.server.ZooKeeperThread
org.apache.zookeeper.server.ZooKeeperCriticalThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CommitProcessor, FollowerRequestProcessor, LearnerSender, ObserverRequestProcessor, PrepRequestProcessor, ReadOnlyRequestProcessor, RequestThrottler, SessionTrackerImpl, SyncRequestProcessor

public class ZooKeeperCriticalThread extends ZooKeeperThread
Represents critical thread. When there is an uncaught exception thrown by the thread this will exit the system.
  • Constructor Details

  • Method Details

    • handleException

      protected void handleException(String threadName, Throwable e)
      This will be used by the uncaught exception handler and make the system exit.
      Overrides:
      handleException in class ZooKeeperThread
      Parameters:
      threadName - - thread name
      e - - exception object