From 28bf60e511d1f18fdf1754c6b42ac1993eac6e10 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 28 Apr 2015 23:59:04 +0300 Subject: [PATCH] Deprecate streaming (#14914) Long polling should always be used instead of streaming. There are no known cases where streaming would be preferable. Change-Id: I58ad19cb7bed48430decdaef529a7f3daad19e76 --- shared/src/com/vaadin/shared/ui/ui/Transport.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/shared/src/com/vaadin/shared/ui/ui/Transport.java b/shared/src/com/vaadin/shared/ui/ui/Transport.java index 1aae57e266..54d0f08434 100644 --- a/shared/src/com/vaadin/shared/ui/ui/Transport.java +++ b/shared/src/com/vaadin/shared/ui/ui/Transport.java @@ -29,7 +29,10 @@ public enum Transport { WEBSOCKET("websocket"), /** * HTTP streaming + * + * @deprecated Use the more reliable {@link Transport#LONG_POLLING} instead. */ + @Deprecated STREAMING("streaming"), /** * HTTP long polling @@ -47,11 +50,11 @@ public enum Transport { } /** - * Returns a Transport by its identifier. Returns null if no value is found - * for the given identifier. - * - * @since 7.3.10 - */ + * Returns a Transport by its identifier. Returns null if no value is found + * for the given identifier. + * + * @since 7.3.10 + */ public static Transport getByIdentifier(String identifier) { for (Transport t : values()) { if (t.getIdentifier().equals(identifier)) { -- 2.39.5