|
||||||||||
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(java.util.logging.Logger logger)
Constructor. |
|
LoggingThreadFactory(java.util.logging.Logger logger,
boolean daemon)
Constructor. |
Method Summary | |
---|---|
java.lang.Thread |
newThread(java.lang.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(java.util.logging.Logger logger)
logger
- The associated logger.public LoggingThreadFactory(java.util.logging.Logger logger, boolean daemon)
logger
- The associated logger.daemon
- Indicates if threads should be created as daemons.Method Detail |
---|
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
r
- The runnable task.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |