|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.util.concurrent.ThreadFactories
public class ThreadFactories
Factory for creating ThreadFactory instances. All factory
implementations produce named threads to give good stack-traces.
| Nested Class Summary | |
|---|---|
static class |
ThreadFactories.Builder
Simple builder for ThreadFactory instances |
static class |
ThreadFactories.Type
|
| Method Summary | |
|---|---|
static ThreadFactories.Builder |
named(java.lang.String name)
Get a ThreadFactories.Builder with the required name prefix. |
static java.util.concurrent.ThreadFactory |
namedThreadFactory(java.lang.String name)
Get a ThreadFactory with the required name prefix. |
static java.util.concurrent.ThreadFactory |
namedThreadFactory(java.lang.String name,
ThreadFactories.Type type)
Get a ThreadFactory with the required name prefix and type (user or
daemon). |
static java.util.concurrent.ThreadFactory |
namedThreadFactory(java.lang.String name,
ThreadFactories.Type type,
int priority)
Get a ThreadFactory with the required name prefix, type and
priority. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ThreadFactories.Builder named(java.lang.String name)
ThreadFactories.Builder with the required name prefix.
name - threads will be named with this prefix
ThreadFactories.Builder that can specify the parameters for type,
priority etc.
public static java.util.concurrent.ThreadFactory namedThreadFactory(@NotNull
java.lang.String name)
ThreadFactory with the required name prefix. The produced
threads are user threads and have normal priority.
name - the prefix to use for naming the threads.
ThreadFactory
public static java.util.concurrent.ThreadFactory namedThreadFactory(@NotNull
java.lang.String name,
@NotNull
ThreadFactories.Type type)
ThreadFactory with the required name prefix and type (user or
daemon). The produced threads have normal priority.
name - the prefix to use for naming the threads.type - whether they are User or Daemon threads.
ThreadFactory
public static java.util.concurrent.ThreadFactory namedThreadFactory(@NotNull
java.lang.String name,
@NotNull
ThreadFactories.Type type,
int priority)
ThreadFactory with the required name prefix, type and
priority.
name - the prefix to use for naming the threads.type - whether they are User or Daemon threads.priority - the thread priority, must not be lower than
Thread.MIN_PRIORITY or greater than Thread.MAX_PRIORITY
ThreadFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||