ThreadFactory
public class Log4jThreadFactory extends Object implements ThreadFactory
Log4jThread
s.Constructor | Description |
---|---|
Log4jThreadFactory(String threadFactoryName,
boolean daemon,
int priority) |
Constructs an initialized thread factory.
|
Modifier and Type | Method | Description |
---|---|---|
static Log4jThreadFactory |
createDaemonThreadFactory(String threadFactoryName) |
Creates a new daemon thread factory.
|
static Log4jThreadFactory |
createThreadFactory(String threadFactoryName) |
Creates a new thread factory.
|
Thread |
newThread(Runnable runnable) |
public Log4jThreadFactory(String threadFactoryName, boolean daemon, int priority)
threadFactoryName
- The thread factory name.daemon
- Whether to create daemon threads.priority
- The thread priority.public static Log4jThreadFactory createDaemonThreadFactory(String threadFactoryName)
threadFactoryName
- The thread factory name.public static Log4jThreadFactory createThreadFactory(String threadFactoryName)
threadFactoryName
- The thread factory name.public Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.