Package org.zkoss.zkmax.au.websocket
Class Attributes
java.lang.Object
org.zkoss.zkmax.au.websocket.Attributes
Attributes used internally for WebSocket connections only.
- Since:
- 8.5.0
- Author:
- wenninghsu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe timeout in milliseconds for each connection attempt at client.static final StringThe pong message to ask client to send a dummy ping message.static final StringThe name of an item which stores the websocket serverpush class in desktop storage.static final StringThe name of an attribute which stores the handshake request of the websocket connection in desktop.static final StringThe name of an attribute which stores the handshake response of the websocket connection in desktop.static final intA status number representing the pong message is successful in websocket connection.static final StringThe ping message to ask client to send a pong message.static final StringThe ping mechanism interval in second.static final StringThe heartbeat mechanism thread pool size.static final StringThe heartbeat mechanism timeout in second (onlyWS_PING_INTERVAL_SECONDis greater than 0) Default: 20 seconds.static final StringThe pong message sent by client.static final StringThe websocket client reconnection whether is enabled or not.static final StringThe number of reconnection attempts before giving up for the websocket client.static final StringThe initial delay before reconnection in milliseconds for the websocket client.static final StringThe maximum delay between two reconnection attempts for the websocket client.static final intA status number representing a server error is occurred when a pong message is received in websocket connection. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WS_HANDSHAKE_REQUEST
The name of an attribute which stores the handshake request of the websocket connection in desktop.- Since:
- 8.5.0
- See Also:
-
WS_HANDSHAKE_RESPONSE
The name of an attribute which stores the handshake response of the websocket connection in desktop.- Since:
- 8.5.0
- See Also:
-
WS_EP
The name of an item which stores the websocket serverpush class in desktop storage.- Since:
- 8.5.0
- See Also:
-
WS_OK_STATUS
public static final int WS_OK_STATUSA status number representing the pong message is successful in websocket connection.- Since:
- 8.5.0
- See Also:
-
WS_SERVER_ERROR_STATUS
public static final int WS_SERVER_ERROR_STATUSA status number representing a server error is occurred when a pong message is received in websocket connection.- Since:
- 8.5.0
- See Also:
-
WS_ECHO
The pong message to ask client to send a dummy ping message.- Since:
- 8.5.0
- See Also:
-
WS_PING_INTERVAL_SECOND
The ping mechanism interval in second. <= 0 means turned off. Default: 25 seconds (since 9.6.1)- Since:
- 9.5.0
- See Also:
-
WS_PING_TIMEOUT_SECOND
The heartbeat mechanism timeout in second (onlyWS_PING_INTERVAL_SECONDis greater than 0) Default: 20 seconds.- Since:
- 9.6.1
- See Also:
-
WS_PING_SCHEDULING_POOL_SIZE
The heartbeat mechanism thread pool size. Default: 1.- Since:
- 9.6.1
- See Also:
-
WS_CONNECTION_TIMEOUT
The timeout in milliseconds for each connection attempt at client. Default: 20000 ms.- Since:
- 9.6.1
- See Also:
-
WS_RECONNECTION
The websocket client reconnection whether is enabled or not. Default: true.- Since:
- 9.6.1
- See Also:
-
WS_RECONNECTION_ATTEMPTS
The number of reconnection attempts before giving up for the websocket client. Default: Infinity.- Since:
- 9.6.1
- See Also:
-
WS_RECONNECTION_DELAY
The initial delay before reconnection in milliseconds for the websocket client. Default: 1000 ms.- Since:
- 9.6.1
- See Also:
-
WS_RECONNECTION_DELAY_MAX
The maximum delay between two reconnection attempts for the websocket client. Each attempt increases the reconnection delay by 2x. Default: 5000 ms.- Since:
- 9.6.1
- See Also:
-
WS_PING
The ping message to ask client to send a pong message.- Since:
- 9.6.1
- See Also:
-
WS_PONG
The pong message sent by client.- Since:
- 9.6.1
- See Also:
-
-
Constructor Details
-
Attributes
public Attributes()
-