Package org.restlet.engine.log
Class LoggingThreadFactory
- java.lang.Object
-
- org.restlet.engine.log.LoggingThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class LoggingThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactoryThread factory that logs uncaught exceptions thrown by the created threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classLoggingThreadFactory.LoggingExceptionHandlerHandle uncaught thread exceptions.
-
Constructor Summary
Constructors Constructor Description LoggingThreadFactory(java.util.logging.Logger logger)Constructor.LoggingThreadFactory(java.util.logging.Logger logger, boolean daemon)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThreadnewThread(java.lang.Runnable r)Creates a new thread.
-
-
-
Constructor Detail
-
LoggingThreadFactory
public LoggingThreadFactory(java.util.logging.Logger logger)
Constructor.- Parameters:
logger- The associated logger.
-
LoggingThreadFactory
public LoggingThreadFactory(java.util.logging.Logger logger, boolean daemon)Constructor.- Parameters:
logger- The associated logger.daemon- Indicates if threads should be created as daemons.
-
-