Package com.oorian
Enum Class CommunicationMode
- All Implemented Interfaces:
Serializable,Comparable<CommunicationMode>,Constable
Defines the asynchronous communication mode used between the browser and server for an HtmlPage.
APP_DEFAULT- Use the application-wide default communication modeAJAX_ONLY- Request/response polling with no persistent connectionAJAX_WITH_SSE- AJAX for client-to-server events, Server-Sent Events for server-to-client pushWEBSOCKET- Full-duplex bidirectional communication
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPoll-based communication with no persistent connection.Hybrid mode using AJAX for client-to-server communication and Server-Sent Events (SSE) for server-to-client push notifications.Use the application-wide default communication mode set viaApplication.setDefaultCommunicationMode(CommunicationMode).Full-duplex bidirectional WebSocket communication. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommunicationModeReturns the enum constant of this class with the specified name.static CommunicationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APP_DEFAULT
Use the application-wide default communication mode set viaApplication.setDefaultCommunicationMode(CommunicationMode). -
AJAX_ONLY
Poll-based communication with no persistent connection. Client sends AJAX requests and server responds. Server-initiated updates must be queued until the next client request. -
AJAX_WITH_SSE
Hybrid mode using AJAX for client-to-server communication and Server-Sent Events (SSE) for server-to-client push notifications. SSE provides automatic reconnection and works through most proxies and firewalls. -
WEBSOCKET
Full-duplex bidirectional WebSocket communication. This is the default mode and provides the lowest latency for real-time applications.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-