Enum MessageInputStream.State
java.lang.Object
java.lang.Enum<MessageInputStream.State>
org.eclipse.jetty.websocket.common.message.MessageInputStream.State
- All Implemented Interfaces:
Serializable
,Comparable<MessageInputStream.State>
- Enclosing class:
MessageInputStream
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWe have read to EOF or someone has called InputStream.close(), any further reads will result in reading -1.We have received a frame with fin==true and have suspended until we are signaled that onMessage method exited.Open and waiting for a frame to be delivered inMessageInputStream.appendFrame(ByteBuffer, boolean)
.We have suspended the session after reading a websocket frame but have not reached the end of the message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageInputStream.State
Returns the enum constant of this type with the specified name.static MessageInputStream.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESUMED
Open and waiting for a frame to be delivered inMessageInputStream.appendFrame(ByteBuffer, boolean)
. -
SUSPENDED
We have suspended the session after reading a websocket frame but have not reached the end of the message. -
COMPLETE
We have received a frame with fin==true and have suspended until we are signaled that onMessage method exited. -
CLOSED
We have read to EOF or someone has called InputStream.close(), any further reads will result in reading -1.
-
-
Constructor Details
-
State
private State()
-
-
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
-