com.vaadin.shared.communication
Class PushConstants

java.lang.Object
  extended by com.vaadin.shared.communication.PushConstants
All Implemented Interfaces:
java.io.Serializable

public class PushConstants
extends java.lang.Object
implements java.io.Serializable

Shared constants used by push.

Since:
7.1
Author:
Vaadin Ltd
See Also:
Serialized Form

Field Summary
static char MESSAGE_DELIMITER
          The character used to mark message boundaries when messages may be split into multiple fragments.
static int WEBSOCKET_BUFFER_SIZE
          The size, in bytes, of the receiving buffer used by some servers.
static int WEBSOCKET_FRAGMENT_SIZE
          The maximum size, in characters, of a websocket message fragment.
 
Constructor Summary
PushConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBSOCKET_BUFFER_SIZE

public static final int WEBSOCKET_BUFFER_SIZE
The size, in bytes, of the receiving buffer used by some servers.

Should not be set to a value equal to or greater than 32768 due to a Jetty 9.1 issue (see #13087)

See Also:
Constant Field Values

WEBSOCKET_FRAGMENT_SIZE

public static final int WEBSOCKET_FRAGMENT_SIZE
The maximum size, in characters, of a websocket message fragment. This is a conservative maximum chosen so that the size in bytes will not exceed WEBSOCKET_BUFFER_SIZE given a UTF-8 encoded message.

See Also:
Constant Field Values

MESSAGE_DELIMITER

public static final char MESSAGE_DELIMITER
The character used to mark message boundaries when messages may be split into multiple fragments.

See Also:
Constant Field Values
Constructor Detail

PushConstants

public PushConstants()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.