Class WebSocketTransportAgent

    • Field Detail

      • maxpayload

        protected int maxpayload
        Maximum size of websocket frame payloads.
      • idletimeout

        protected int idletimeout
        Idle connection timeout.
      • connecttimeout

        protected long connecttimeout
        Timeout on trying to connect.
      • websocketfactory

        protected com.neovisionaries.ws.client.WebSocketFactory websocketfactory
        WebSocket factory.
    • Constructor Detail

      • WebSocketTransportAgent

        public WebSocketTransportAgent()
        Creates the agent.
    • Method Detail

      • getMaximumPayloadSize

        public int getMaximumPayloadSize()
        Gets the maximum size of websocket frame payloads.
        Returns:
        Maximum size of websocket frame payloads.
      • getMaximumMessageSize

        public int getMaximumMessageSize()
        Gets the maximum message size of websocket messages.
        Returns:
        Maximum message size of websocket messages.
      • getIdleTimeout

        public int getIdleTimeout()
        Gets the idle timeout.
        Returns:
        The idle timeout.
      • getConnectTimeout

        public long getConnectTimeout()
        Gets the connect timeout.
        Returns:
        The connect timeout.
      • getThreadPoolService

        public IDaemonThreadPoolService getThreadPoolService()
        Returns the thread pool service.
        Returns:
        The thread pool service.
      • setThreadPoolService

        public void setThreadPoolService​(IDaemonThreadPoolService tps)
        Sets the thread pool service.
        Parameters:
        tps - The thread pool service.
      • getWebSocketFactory

        public com.neovisionaries.ws.client.WebSocketFactory getWebSocketFactory()
        Gets the WebSocket factory.
        Returns:
        The WebSocket factory.
      • setWebsocketFactory

        public void setWebsocketFactory​(com.neovisionaries.ws.client.WebSocketFactory websocketfactory)
        Sets the WebSocket factory.
        Parameters:
        websocketfactory - The WebSocket factory.