From: Artur Signell Date: Tue, 28 Apr 2015 20:59:04 +0000 (+0300) Subject: Deprecate streaming (#14914) X-Git-Tag: 7.5.0.rc1~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28bf60e511d1f18fdf1754c6b42ac1993eac6e10;p=vaadin-framework.git 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 --- 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)) {