private static class LegacyLogWriteExecutor.ExecutorsThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicInteger |
count
Counter for threads created by the factory to provide unique identification.
|
private java.lang.String |
rotationFix
An identifier for the type of thread.
|
| Constructor and Description |
|---|
ExecutorsThreadFactory(boolean hasRotation)
Package private constructor for ExecutorsThreadFactory
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Thread |
newThread(java.lang.Runnable runnable)
Creates a new thread for the provided runnable and assigns a name to it that identifies it uniquely.
|
private final java.lang.String rotationFix
private final java.util.concurrent.atomic.AtomicInteger count
ExecutorsThreadFactory(boolean hasRotation)
public java.lang.Thread newThread(java.lang.Runnable runnable)
newThread in interface java.util.concurrent.ThreadFactoryrunnable - The task to be executed by the thread.