Package org.restlet.engine.log
Class LoggingThreadFactory
java.lang.Object
org.restlet.engine.log.LoggingThreadFactory
- All Implemented Interfaces:
ThreadFactory
Thread factory that logs uncaught exceptions thrown by the created threads.
- Author:
- Jerome Louvel
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingThreadFactory(Logger logger) Constructor.LoggingThreadFactory(Logger logger, boolean daemon) Constructor. -
Method Summary
-
Constructor Details
-
LoggingThreadFactory
Constructor.- Parameters:
logger- The associated logger.
-
LoggingThreadFactory
Constructor.- Parameters:
logger- The associated logger.daemon- Indicates if threads should be created as daemons.
-
-
Method Details
-
newThread
Creates a new thread.- Specified by:
newThreadin interfaceThreadFactory- Parameters:
r- The runnable task.
-