Chan Chen Coding...

          11 2012 檔案

          BLOBs and CLOBs
               摘要: solidDB? can store binary and character data up to 2147483647 (2G - 1) bytes long. When such data exceeds a certain length, the data is called a BLOB (Binary Large OBject) or CLOB (Character Large OBject), depending upon the data type that stores the information. CLOBS contain only "plain text" and can be stored in any of the following data types:  閱讀全文

          posted @ 2012-11-30 13:44 Chan Chen 閱讀(333) | 評論 (0)  編輯

          Understand The SerialVersionUID
               摘要: The serialVersionUID is used as a version control in a Serializable class. If you do not explicitly declare a serialVersionUID, JVM will do it for you automatically, based on various aspects of your Serializable class, as described in the Java(TM) Object Serialization Specification.  閱讀全文

          posted @ 2012-11-28 12:01 Chan Chen 閱讀(394) | 評論 (0)  編輯

          Netty 4.0 源碼分析(八):Netty 4.0中的io.netty.buffer包
               摘要: Netty 4.0的源碼結構與之前的3.X版本發生了較大的變化,以下是Netty 4.0源碼的層次結構
          在接下來的源碼分析中,筆者打算對每個包實現的功能做詳細的分析(除了example包,all包和tarball包)。在這篇文章中,筆者將對buffer包進行分析。  閱讀全文

          posted @ 2012-11-27 11:34 Chan Chen 閱讀(13515) | 評論 (2)  編輯

          Runnable Callable Future and Executor in Java
               摘要: Executor就是Runnable和Callable的調度容器,Future就是對于具體的調度任務的執行結果進行查看,最為關鍵的是Future可以檢查對應的任務是否已經完成,也可以阻塞在get方法上一直等待任務返回結果。Runnable和Callable的差別就是Runnable是沒有結果可以返回的,就算是通過Future也看不到任務調度的結果的。   閱讀全文

          posted @ 2012-11-26 11:59 Chan Chen 閱讀(367) | 評論 (0)  編輯

          Netty 4.0 源碼分析(七):AbstractBootstrap抽象類
               摘要: AbstractBootstrap是一個幫助類,通過方法鏈(method chaining)的方式,提供了一個簡單易用的方式來配置Bootstrap,然后啟動一個Channel。在理解Netty源碼中的AbstractBootstrap, ServerBootstrap和Bootstrap之前,應該先了解一下什么是method chaining。  閱讀全文

          posted @ 2012-11-26 10:57 Chan Chen 閱讀(2184) | 評論 (0)  編輯

          Netty 4.0 源碼分析(六):EventLoop和EventLoopGroup
               摘要: EventLoop相當于一個Thread線程,而EventLoopGroup則是管理這些EventLoop的Thread線程池  閱讀全文

          posted @ 2012-11-25 21:49 Chan Chen 閱讀(4508) | 評論 (0)  編輯

          Netty 4.0 源碼分析(四):ByteBuf
               摘要: Netty是基于流的消息傳遞機制。Netty框架中,所有消息的傳輸都依賴于ByteBuf接口,ByteBuf是Netty NIO框架中的緩沖區。ByteBuf接口可以理解為一般的Byte數組,不過Netty對Byte進行了封裝,增加了一些實用的方法。  閱讀全文

          posted @ 2012-11-25 20:44 Chan Chen 閱讀(9213) | 評論 (0)  編輯

          Netty 4.0 源碼分析(五):ChannelHandlerContext和ChannelHandler
               摘要: ChannelHandlerContext接口的幾個重要方法
          ChannelPipeline pipeline();
          返回屬于當前ChannelHandlerContext的ChannelPipeline。  閱讀全文

          posted @ 2012-11-25 16:51 Chan Chen 閱讀(12652) | 評論 (4)  編輯

          Netty 4.0 源碼分析(三):Channel和ChannelPipeline
               摘要: Client和server通過Channel連接,然后通過ByteBuf進行傳輸。每個Channel有自己的Pipeline,Pipeline上面可以添加和定義Handler和Event。  閱讀全文

          posted @ 2012-11-25 14:53 Chan Chen 閱讀(9158) | 評論 (0)  編輯

          Netty 4.0 源碼分析(二):Echo Server
               摘要: Netty項目中,自帶了很多使用的例子,對于剛剛開始接觸和學習Netty源碼的開發者來說,可以通過例子來更好的理解Netty的具體實現。源碼可以再netty 4.0的example找到。  閱讀全文

          posted @ 2012-11-24 12:38 Chan Chen 閱讀(7079) | 評論 (1)  編輯

          Java中的getName(), .class 和forName()的區別

          posted @ 2012-11-23 23:09 Chan Chen 閱讀(798) | 評論 (0)  編輯

          Question Mark ? in Java

          posted @ 2012-11-23 15:47 Chan Chen 閱讀(273) | 評論 (0)  編輯

          Understand TheadLocal

          posted @ 2012-11-23 11:24 Chan Chen 閱讀(619) | 評論 (0)  編輯

          Netty 4.0 源碼分析(一):配置環境

          posted @ 2012-11-22 21:21 Chan Chen 閱讀(3274) | 評論 (0)  編輯

          Import Github Source Code into Eclipse

          posted @ 2012-11-21 17:18 Chan Chen 閱讀(1112) | 評論 (0)  編輯

          μJavaActors

          posted @ 2012-11-20 15:33 Chan Chen 閱讀(396) | 評論 (0)  編輯

          對象的串行化(Serialization)

          posted @ 2012-11-13 11:04 Chan Chen 閱讀(166) | 評論 (0)  編輯

          Twelve: Iterator Design Pattern

          posted @ 2012-11-06 10:49 Chan Chen 閱讀(268) | 評論 (0)  編輯

          Eleven: Memento Design Pattern

          posted @ 2012-11-06 09:45 Chan Chen 閱讀(195) | 評論 (0)  編輯

          Ten: Mediator Design Pattern

          posted @ 2012-11-05 11:45 Chan Chen 閱讀(242) | 評論 (0)  編輯

          Nine: Interpreter Design Pattern

          posted @ 2012-11-05 10:34 Chan Chen 閱讀(260) | 評論 (0)  編輯

          notify() and wait()

          posted @ 2012-11-03 11:18 Chan Chen 閱讀(206) | 評論 (0)  編輯

          hashcode() and equal()

          posted @ 2012-11-03 11:00 Chan Chen 閱讀(293) | 評論 (0)  編輯

          Spring依賴注入的三種方式

          posted @ 2012-11-03 09:12 Chan Chen 閱讀(5242) | 評論 (0)  編輯

          Eight: State Design Pattern

          posted @ 2012-11-02 14:56 Chan Chen 閱讀(318) | 評論 (0)  編輯

          Seven: Visitor Design Pattern

          posted @ 2012-11-02 14:16 Chan Chen 閱讀(282) | 評論 (0)  編輯

          Six: Composite pattern

          posted @ 2012-11-01 17:10 Chan Chen 閱讀(369) | 評論 (0)  編輯

          Five: Bridge Design Pattern

          posted @ 2012-11-01 16:00 Chan Chen 閱讀(243) | 評論 (0)  編輯

          主站蜘蛛池模板: 甘孜县| 元江| 清镇市| 会理县| 宣威市| 长兴县| 韶山市| 金平| 敦化市| 景谷| 锡林郭勒盟| 肥城市| 遂溪县| 西和县| 新沂市| 西宁市| 长白| 观塘区| 施秉县| 荔波县| 岳阳市| 海口市| 大余县| 五大连池市| 桦甸市| 应用必备| 门源| 宁都县| 邢台县| 淳化县| 政和县| 丁青县| 宁德市| 宁陕县| 平邑县| 丹凤县| 油尖旺区| 普兰店市| 清丰县| 平果县| 玛纳斯县|