com.vaadin.server.communication
Class PushHandler

java.lang.Object
  extended by com.vaadin.server.communication.PushHandler

public class PushHandler
extends java.lang.Object

Handles incoming push connections and messages and dispatches them to the correct UI/ AtmospherePushConnection

Since:
7.1
Author:
Vaadin Ltd

Constructor Summary
PushHandler(VaadinServletService service)
           
 
Method Summary
 int getLongPollingSuspendTimeout()
          Gets the timeout used for suspend calls when using long polling.
 void setLongPollingSuspendTimeout(int longPollingSuspendTimeout)
          Sets the timeout used for suspend calls when using long polling.
protected  void suspend(org.atmosphere.cpr.AtmosphereResource resource)
          Suspends the given resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PushHandler

public PushHandler(VaadinServletService service)
Method Detail

suspend

protected void suspend(org.atmosphere.cpr.AtmosphereResource resource)
Suspends the given resource

Parameters:
resource - the resource to suspend
Since:
7.6

setLongPollingSuspendTimeout

public void setLongPollingSuspendTimeout(int longPollingSuspendTimeout)
Sets the timeout used for suspend calls when using long polling. If you are using a proxy with a defined idle timeout, set the suspend timeout to a value smaller than the proxy timeout so that the server is aware of a reconnect taking place.

Parameters:
suspendTimeout - the timeout to use for suspended AtmosphereResources
Since:
7.6

getLongPollingSuspendTimeout

public int getLongPollingSuspendTimeout()
Gets the timeout used for suspend calls when using long polling.

Returns:
the timeout to use for suspended AtmosphereResources
Since:
7.6


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