public enum ThreadType extends Enum<ThreadType>
Types of threads which are created internally in the implementation.
| Enum Constant and Description |
|---|
CONNECT_THREAD
A thread which calls
WebSocket.connect() asynchronously
(<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/ConnectThread.java'>ConnectThread</a></code>). |
FINISH_THREAD
A thread which does finalization of a
WebSocket instance. |
READING_THREAD
A thread which reads WebSocket frames from the server
(<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/ReadingThread.java'>ReadingThread</a></code>).
|
WRITING_THREAD
A thread which sends WebSocket frames to the server
(<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/WritingThread.java'>WritingThread</a></code>).
|
| 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
A thread which reads WebSocket frames from the server (<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/ReadingThread.java'>ReadingThread</a></code>).
public static final ThreadType WRITING_THREAD
A thread which sends WebSocket frames to the server (<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/WritingThread.java'>WritingThread</a></code>).
public static final ThreadType CONNECT_THREAD
A thread which calls WebSocket.connect() asynchronously
(<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/ConnectThread.java'>ConnectThread</a></code>).
public static final ThreadType FINISH_THREAD
A thread which does finalization of a WebSocket instance.
(<code><a href='https://github.com/TakahikoKawasaki/nv-websocket-client/blob/master/src/main/java/com/neovisionaries/ws/client/FinishThread.java'>FinishThread</a></code>).
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.