diff options
author | Artur Signell <artur@vaadin.com> | 2015-04-28 23:59:04 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-05 12:36:21 +0000 |
commit | 28bf60e511d1f18fdf1754c6b42ac1993eac6e10 (patch) | |
tree | 813ebac4149bfa6431ef4646971f314926683d23 /shared | |
parent | 96e0e2ed125a05d58373e1a6c11d8bfe39659e89 (diff) | |
download | vaadin-framework-28bf60e511d1f18fdf1754c6b42ac1993eac6e10.tar.gz vaadin-framework-28bf60e511d1f18fdf1754c6b42ac1993eac6e10.zip |
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
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/ui/Transport.java | 13 |
1 files 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)) { |