com.vaadin.server.communication.

Class PushHandler

  • public class PushHandler
    extends Object

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

    Since:

    7.1

    Author:

    Vaadin Ltd

    • Method Detail

      • createRpcHandler

        protected ServerRpcHandler createRpcHandler()

        Creates the ServerRpcHandler to use.

        Returns:

        the ServerRpcHandler to use

        Since:

        8.5

      • 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:

        longPollingSuspendTimeout - 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