Class AbstractServerTransport

    • Method Detail

      • getInterval

        public long getInterval()
        Specified by:
        getInterval in interface ServerTransport
        Returns:
        the interval in milliseconds
      • getMaxInterval

        public long getMaxInterval()
        Specified by:
        getMaxInterval in interface ServerTransport
        Returns:
        the maxInterval in milliseconds
      • getMaxLazyTimeout

        public long getMaxLazyTimeout()
        Specified by:
        getMaxLazyTimeout in interface ServerTransport
        Returns:
        the max lazy timeout in milliseconds before flushing lazy messages
      • getTimeout

        public long getTimeout()
        Specified by:
        getTimeout in interface ServerTransport
        Returns:
        the timeout in milliseconds
      • isMetaConnectDeliveryOnly

        public boolean isMetaConnectDeliveryOnly()
        Specified by:
        isMetaConnectDeliveryOnly in interface ServerTransport
        Returns:
        whether the messages are delivered to clients exclusively via the "/meta/connect" channel
      • setMetaConnectDeliveryOnly

        public void setMetaConnectDeliveryOnly​(boolean meta)
      • isHandshakeReconnect

        public boolean isHandshakeReconnect()
      • setHandshakeReconnect

        public void setHandshakeReconnect​(boolean handshakeReconnect)
      • isAllowMessageDeliveryDuringHandshake

        public boolean isAllowMessageDeliveryDuringHandshake()
      • setAllowMessageDeliveryDuringHandshake

        public void setAllowMessageDeliveryDuringHandshake​(boolean allow)
      • getMaxMessageSize

        public int getMaxMessageSize()
      • setMaxMessageSize

        public void setMaxMessageSize​(int maxMessageSize)
      • init

        public void init()
        Initializes the transport, resolving default and direct options.
      • destroy

        public void destroy()
      • getBayeux

        public BayeuxServerImpl getBayeux()
        Returns:
        the BayeuxServer object
      • setInterval

        public void setInterval​(long interval)
        Parameters:
        interval - the interval in milliseconds
      • setMaxInterval

        public void setMaxInterval​(long maxInterval)
        Parameters:
        maxInterval - the maxInterval in milliseconds
      • setTimeout

        public void setTimeout​(long timeout)
        Parameters:
        timeout - the timeout in milliseconds
      • setMaxLazyTimeout

        public void setMaxLazyTimeout​(long maxLazyTimeout)
        Parameters:
        maxLazyTimeout - the maxLazyTimeout in milliseconds
      • sweep

        protected void sweep()
        Housekeeping sweep, called a regular intervals
      • allowMessageDeliveryDuringHandshake

        public boolean allowMessageDeliveryDuringHandshake​(ServerSessionImpl session)