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 閱讀(330) | 評論 (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 閱讀(391) | 評論 (0)  編輯

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

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

          Runnable Callable Future and Executor in Java
               摘要: Executor就是Runnable和Callable的調(diào)度容器,F(xiàn)uture就是對于具體的調(diào)度任務(wù)的執(zhí)行結(jié)果進(jìn)行查看,最為關(guān)鍵的是Future可以檢查對應(yīng)的任務(wù)是否已經(jīng)完成,也可以阻塞在get方法上一直等待任務(wù)返回結(jié)果。Runnable和Callable的差別就是Runnable是沒有結(jié)果可以返回的,就算是通過Future也看不到任務(wù)調(diào)度的結(jié)果的。   閱讀全文

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Question Mark ? in Java

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

          Understand TheadLocal

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

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

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

          Import Github Source Code into Eclipse

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

          μJavaActors

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

          對象的串行化(Serialization)

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

          Twelve: Iterator Design Pattern

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

          Eleven: Memento Design Pattern

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

          Ten: Mediator Design Pattern

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

          Nine: Interpreter Design Pattern

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

          notify() and wait()

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

          hashcode() and equal()

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

          Spring依賴注入的三種方式

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

          Eight: State Design Pattern

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

          Seven: Visitor Design Pattern

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

          Six: Composite pattern

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

          Five: Bridge Design Pattern

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

          主站蜘蛛池模板: 杭州市| 弥渡县| 岚皋县| 若羌县| 石门县| 日土县| 小金县| 当雄县| 峨眉山市| 贵溪市| 普陀区| 沙田区| 上思县| 阳西县| 常州市| 连平县| 黎城县| 即墨市| 青海省| 镇江市| 邓州市| 宜川县| 怀仁县| 泰州市| 临澧县| 澄江县| 万全县| 闻喜县| 东丰县| 邵武市| 贺州市| 宣恩县| 沭阳县| 普兰店市| 神池县| 永德县| 黑龙江省| 盐山县| 永顺县| 石景山区| 金秀|