public enum ThreadContext extends Enum<ThreadContext>
Thread on the server.| Enum Constant and Description |
|---|
ASYNC
Represents anything which isn't the
SYNC thread. |
SYNC
Represents the main "server" thread
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadContext |
forCurrentThread() |
static ThreadContext |
forThread(Thread thread) |
static ThreadContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadContext SYNC
public static final ThreadContext ASYNC
SYNC thread.public static ThreadContext[] values()
for (ThreadContext c : ThreadContext.values()) System.out.println(c);
public static ThreadContext valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ThreadContext forCurrentThread()
public static ThreadContext forThread(Thread thread)
Copyright © 2020. All rights reserved.