|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.log.LoggingThreadFactory
public class LoggingThreadFactory
Thread factory that logs uncaught exceptions thrown by the created threads.
Constructor Summary | |
---|---|
LoggingThreadFactory(Logger logger)
Constructor. |
|
LoggingThreadFactory(Logger logger,
boolean daemon)
Constructor. |
Method Summary | |
---|---|
Thread |
newThread(Runnable r)
Creates a new thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingThreadFactory(Logger logger)
logger
- The associated logger.public LoggingThreadFactory(Logger logger, boolean daemon)
logger
- The associated logger.daemon
- Indicates if threads should be created as daemons.Method Detail |
---|
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
r
- The runnable task.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |