protected static enum WsFrameBase.ReadState extends Enum<WsFrameBase.ReadState>
resume data to be resume
no action processed no action
|---------------| |---------------| |----------|
| v | v v |
| |----------WAITING«--------PROCESSING----| |
| | ^ processing | |
| | | finished | |
| | | | |
| suspend | suspend |
| | | | |
| | resume | |
| | register socket to poller (server) | |
| | resume data processing (client) | |
| | | | |
| v | v |
SUSPENDING_WAIT | SUSPENDING_PROCESS
| | |
| data available | processing finished |
|-------------»SUSPENDED«----------------------|
| Enum Constant and Description |
|---|
CLOSING |
PROCESSING |
SUSPENDED |
SUSPENDING_PROCESS |
SUSPENDING_WAIT |
WAITING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSuspended() |
static WsFrameBase.ReadState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WsFrameBase.ReadState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WsFrameBase.ReadState WAITING
public static final WsFrameBase.ReadState PROCESSING
public static final WsFrameBase.ReadState SUSPENDING_WAIT
public static final WsFrameBase.ReadState SUSPENDING_PROCESS
public static final WsFrameBase.ReadState SUSPENDED
public static final WsFrameBase.ReadState CLOSING
public static WsFrameBase.ReadState[] values()
for (WsFrameBase.ReadState c : WsFrameBase.ReadState.values()) System.out.println(c);
public static WsFrameBase.ReadState 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 boolean isSuspended()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.