Class ClientTransport

    • Method Detail

      • getURL

        public String getURL()
      • setURL

        public void setURL​(String url)
      • init

        public void init()
      • initScheduler

        protected void initScheduler()
      • shutdownScheduler

        protected void shutdownScheduler()
      • abort

        public abstract void abort​(Throwable failure)
        Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as /meta/connects, without waiting for a response.
        Parameters:
        failure - the cause of the abort
        See Also:
        BayeuxClient.abort()
      • terminate

        public void terminate()
        Terminates this transport, usually by closing network connections opened directly by this transport.
        See Also:
        ClientSession.disconnect()
      • accept

        public abstract boolean accept​(String version)
      • send

        public abstract void send​(TransportListener listener,
                                  List<org.cometd.bayeux.Message.Mutable> messages)
      • generateJSON

        protected String generateJSON​(List<org.cometd.bayeux.Message.Mutable> messages)
      • getMaxNetworkDelay

        public long getMaxNetworkDelay()
      • setMaxNetworkDelay

        protected void setMaxNetworkDelay​(long maxNetworkDelay)