Class Attributes

java.lang.Object
org.zkoss.zkmax.au.websocket.Attributes

public class Attributes extends Object
Attributes used internally for WebSocket connections only.
Since:
8.5.0
Author:
wenninghsu
  • Field Details

    • WS_HANDSHAKE_REQUEST

      public static final String 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

      public static final String 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

      public static final String 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_STATUS
      A 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_STATUS
      A 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

      public static final String WS_ECHO
      The pong message to ask client to send a dummy ping message.
      Since:
      8.5.0
      See Also:
    • WS_PING_INTERVAL_SECOND

      public static final String 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

      public static final String WS_PING_TIMEOUT_SECOND
      The heartbeat mechanism timeout in second (only WS_PING_INTERVAL_SECOND is greater than 0) Default: 20 seconds.
      Since:
      9.6.1
      See Also:
    • WS_PING_SCHEDULING_POOL_SIZE

      public static final String WS_PING_SCHEDULING_POOL_SIZE
      The heartbeat mechanism thread pool size. Default: 1.
      Since:
      9.6.1
      See Also:
    • WS_CONNECTION_TIMEOUT

      public static final String WS_CONNECTION_TIMEOUT
      The timeout in milliseconds for each connection attempt at client. Default: 20000 ms.
      Since:
      9.6.1
      See Also:
    • WS_RECONNECTION

      public static final String WS_RECONNECTION
      The websocket client reconnection whether is enabled or not. Default: true.
      Since:
      9.6.1
      See Also:
    • WS_RECONNECTION_ATTEMPTS

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String WS_PING
      The ping message to ask client to send a pong message.
      Since:
      9.6.1
      See Also:
    • WS_PONG

      public static final String WS_PONG
      The pong message sent by client.
      Since:
      9.6.1
      See Also:
  • Constructor Details

    • Attributes

      public Attributes()