com.vaadin.server.communication
Interface PushConnection

All Known Implementing Classes:
AtmospherePushConnection

public interface PushConnection

Represents a bidirectional ("push") connection between a single UI and its client-side.

Since:
7.1
Author:
Vaadin Ltd

Method Summary
 void disconnect()
          Closes the connection.
 boolean isConnected()
          Returns whether this connection is currently open.
 void push()
          Pushes pending state changes and client RPC calls to the client.
 

Method Detail

push

void push()
Pushes pending state changes and client RPC calls to the client. Cannot be called if isConnected() is false. It is NOT safe to invoke this method if not holding the session lock.

This is internal API; please use UI.push() instead.


disconnect

void disconnect()
Closes the connection. Cannot be called if isConnected() is false.


isConnected

boolean isConnected()
Returns whether this connection is currently open.



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