com.vaadin.annotations
Annotation Type Push


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Push

Configures server push for a UI. 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

Optional Element Summary
 com.vaadin.shared.ui.ui.Transport transport
          Returns the transport type used for the push for the annotated UI.
 com.vaadin.shared.communication.PushMode value
          Returns the PushMode to use for the annotated UI.
 

value

public abstract com.vaadin.shared.communication.PushMode value
Returns the PushMode to use for the annotated UI. The default push mode when this annotation is present is PushMode.AUTOMATIC.

Returns:
the push mode to use
Default:
com.vaadin.shared.communication.PushMode.AUTOMATIC

transport

public abstract com.vaadin.shared.ui.ui.Transport transport
Returns the transport type used for the push for the annotated UI. The default transport type when this annotation is present is Transport.WEBSOCKET.

Returns:
the transport type to use
Default:
com.vaadin.shared.ui.ui.Transport.WEBSOCKET


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.