From 72b36bbe2d18ee1adc037ba0d4f2093d23412c4f Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 17 Apr 2015 22:02:49 +0300 Subject: Use counter in client to server messages to avoid duplicate handling (#11733) An server message id counter is included in every client to server message and an expected id is included in every server to client message. This makes it safe to re-send any message when the client is not 100% sure the server has received the message, without having to worry about double handling on the server side. Change-Id: I840cc04829fc2491f35a0e6f98f07eaf46b1ea42 --- shared/src/com/vaadin/shared/ApplicationConstants.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared') diff --git a/shared/src/com/vaadin/shared/ApplicationConstants.java b/shared/src/com/vaadin/shared/ApplicationConstants.java index 3431387b77..8613c9a1d2 100644 --- a/shared/src/com/vaadin/shared/ApplicationConstants.java +++ b/shared/src/com/vaadin/shared/ApplicationConstants.java @@ -132,6 +132,12 @@ public class ApplicationConstants implements Serializable { */ public static final String SERVER_SYNC_ID = "syncId"; + /** + * The name of the parameter used to transmit the id of the client to server + * messages. + */ + public static final String CLIENT_TO_SERVER_ID = "clientId"; + /** * Default value to use in case the security protection is disabled. */ -- cgit v1.2.3