模块 org.redkale

类 WebSocketServlet

  • 所有已实现的接口:
    Resourcable

    public abstract class WebSocketServlet
    extends HttpServlet
    implements Resourcable
     当WebSocketServlet接收一个TCP连接后,进行协议判断,如果成功就会创建一个WebSocket。
    
                                        WebSocketServlet
                                                |
                                                |
                                       WebSocketEngine
                                        WebSocketNode
                                       /             \
                                      /               \
                                     /                 \
                                WebSocket1          WebSocket2
    
     

    详情见: https://redkale.org

    作者:
    zhangjx
    • 字段详细资料

      • WEBPARAM_LIVEINTERVAL

        @Comment("WebScoket\u670d\u52a1\u5668\u7ed9\u5ba2\u6237\u7aef\u8fdb\u884cping\u64cd\u4f5c\u7684\u95f4\u9694\u65f6\u95f4, \u5355\u4f4d: \u79d2")
        public static final String WEBPARAM_LIVEINTERVAL
        另请参阅:
        常量字段值
      • WEBPARAM_WSMAXCONNS

        @Comment("WebScoket\u670d\u52a1\u5668\u6700\u5927\u8fde\u63a5\u6570\uff0c\u4e3a0\u8868\u793a\u65e0\u9650\u5236")
        public static final String WEBPARAM_WSMAXCONNS
        另请参阅:
        常量字段值
      • WEBPARAM_WSTHREADS

        @Comment("WebScoket\u670d\u52a1\u5668\u64cd\u4f5cWebSocketNode\u5bf9\u5e94CacheSource\u5e76\u53d1\u6570, \u4e3a-1\u8868\u793a\u65e0\u9650\u5236\uff0c\u4e3a0\u8868\u793a\u7cfb\u7edf\u9ed8\u8ba4\u503c(CPU*8)")
        public static final String WEBPARAM_WSTHREADS
        另请参阅:
        常量字段值
      • WEBPARAM_WSMAXBODY

        @Comment("\u6700\u5927\u6d88\u606f\u4f53\u957f\u5ea6, \u5c0f\u4e8e1\u8868\u793a\u65e0\u9650\u5236")
        public static final String WEBPARAM_WSMAXBODY
        另请参阅:
        常量字段值
      • DEFAILT_LIVEINTERVAL

        @Comment("WebScoket\u670d\u52a1\u5668\u7ed9\u5ba2\u6237\u7aef\u8fdb\u884cping\u64cd\u4f5c\u7684\u9ed8\u8ba4\u95f4\u9694\u65f6\u95f4, \u5355\u4f4d: \u79d2")
        public static final int DEFAILT_LIVEINTERVAL
        另请参阅:
        常量字段值
      • logger

        protected final Logger logger
      • messageRestType

        protected Type messageRestType
      • single

        protected boolean single
      • liveinterval

        protected int liveinterval
      • wsmaxconns

        protected int wsmaxconns
      • wsthreads

        protected int wsthreads
      • wsmaxbody

        protected int wsmaxbody
      • anyuser

        protected boolean anyuser
      • cryptor

        protected Cryptor cryptor
      • permessageDeflate

        protected boolean permessageDeflate
      • jsonConvert

        protected Convert jsonConvert
      • textConvert

        protected Convert textConvert
      • binaryConvert

        protected Convert binaryConvert
      • sendConvert

        protected Convert sendConvert
    • 构造器详细资料

      • WebSocketServlet

        protected WebSocketServlet()