Package com.neovisionaries.ws.client
Enum ThreadType
- All Implemented Interfaces:
Serializable
,Comparable<ThreadType>
Types of threads which are created internally in the implementation.
- Since:
- 2.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA thread which callsWebSocket.connect()
asynchronously (ConnectThread
).A thread which does finalization of aWebSocket
instance.A thread which reads WebSocket frames from the server (ReadingThread
).A thread which sends WebSocket frames to the server (WritingThread
). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadType
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.
-
Enum Constant Details
-
READING_THREAD
A thread which reads WebSocket frames from the server (ReadingThread
). -
WRITING_THREAD
A thread which sends WebSocket frames to the server (WritingThread
). -
CONNECT_THREAD
A thread which callsWebSocket.connect()
asynchronously (ConnectThread
). -
FINISH_THREAD
A thread which does finalization of aWebSocket
instance. (FinishThread
).
-
-
Constructor Details
-
ThreadType
private ThreadType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-