public class DefaultThreadFactory extends Object implements ThreadFactory
ThreadFactory: launches a daemon thread to run normal
writers, runs synchronous writers inline.| Constructor and Description |
|---|
DefaultThreadFactory(String appenderName) |
| Modifier and Type | Method and Description |
|---|---|
protected Thread |
createThread(LogWriter writer,
Thread.UncaughtExceptionHandler exceptionHandler)
Creates and initializes the thread.
|
void |
startWriterThread(LogWriter writer,
Thread.UncaughtExceptionHandler exceptionHandler) |
public DefaultThreadFactory(String appenderName)
public void startWriterThread(LogWriter writer, Thread.UncaughtExceptionHandler exceptionHandler)
startWriterThread in interface ThreadFactoryprotected Thread createThread(LogWriter writer, Thread.UncaughtExceptionHandler exceptionHandler)
Copyright © 2023. All rights reserved.