Class LoggingThreadFactory

java.lang.Object
org.restlet.engine.log.LoggingThreadFactory
All Implemented Interfaces:
ThreadFactory

public class LoggingThreadFactory extends Object implements ThreadFactory
Thread factory that logs uncaught exceptions thrown by the created threads.
Author:
Jerome Louvel
  • Constructor Details

    • LoggingThreadFactory

      public LoggingThreadFactory(Logger logger)
      Constructor.
      Parameters:
      logger - The associated logger.
    • LoggingThreadFactory

      public LoggingThreadFactory(Logger logger, boolean daemon)
      Constructor.
      Parameters:
      logger - The associated logger.
      daemon - Indicates if threads should be created as daemons.
  • Method Details