IdleStateHandler源碼解析
ReadTimeOutHandler源碼解析
總結:都是利用定時器調(diào)度任務完成。 IdleStateHandler超時調(diào)用handler的userEventTriggered方法桑逝。ReadTimeOutHandler超時拋出異常棘劣,調(diào)用handler的exceptionCaught方法,并且會關閉channel楞遏。
IdleStateHandler源碼解析
ReadTimeOutHandler源碼解析
總結:都是利用定時器調(diào)度任務完成。 IdleStateHandler超時調(diào)用handler的userEventTriggered方法桑逝。ReadTimeOutHandler超時拋出異常棘劣,調(diào)用handler的exceptionCaught方法,并且會關閉channel楞遏。