Package com.vaadin.annotations
Annotation Type Push
-
@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface Push
Configures server push for aUI
. Adding@Push
to a UI class configures the UI for automatic push. If some other push mode is desired, it can be passed as a parameter, e.g.@Push(PushMode.MANUAL)
.- Since:
- 7.1
- Author:
- Vaadin Ltd.
- See Also:
PushMode
-
-
Element Detail
-
value
PushMode value
Returns thePushMode
to use for the annotated UI. The default push mode when this annotation is present isPushMode.AUTOMATIC
.- Returns:
- the push mode to use
- Default:
- com.vaadin.shared.communication.PushMode.AUTOMATIC
-
-
-
transport
Transport transport
Returns the transport type used for the push for the annotated UI. The default transport type when this annotation is present isTransport.WEBSOCKET
.- Returns:
- the transport type to use
- Default:
- com.vaadin.shared.ui.ui.Transport.WEBSOCKET
-
-