public enum ThreadType extends Enum<ThreadType>
| Enum Constant and Description |
|---|
CONNECT_THREAD
A thread which calls
WebSocket.connect() asynchronously
(ConnectThread). |
FINISH_THREAD
A thread which does finalization of a
WebSocket instance. |
READING_THREAD
A thread which reads WebSocket frames from the server
(
ReadingThread). |
WRITING_THREAD
A thread which sends WebSocket frames to the server
(
WritingThread). |
| Modifier and Type | Method and Description |
|---|---|
static ThreadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadType READING_THREAD
ReadingThread).public static final ThreadType WRITING_THREAD
WritingThread).public static final ThreadType CONNECT_THREAD
WebSocket.connect() asynchronously
(ConnectThread).public static final ThreadType FINISH_THREAD
WebSocket instance.
(FinishThread).public static ThreadType[] values()
for (ThreadType c : ThreadType.values()) System.out.println(c);
public static ThreadType 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 nullCopyright © 2021. All rights reserved.