使用guava實(shí)現(xiàn)異步回調(diào)
摘要: 利用guava的ListenableFuture和FutureCallback方便的實(shí)現(xiàn)異步回調(diào)
閱讀全文
posted @
2014-02-27 14:54 landon 閱讀(7188) |
評論 (3) 編輯
apache-mina-2.07源碼筆記5-thread model
摘要: 本篇結(jié)合源碼講解了mina的線程模型,主要介紹了ExecutorFilter以及OrderedThreadPoolExecutor即UnorderedThreadPoolExecutor的實(shí)現(xiàn).通過配置線程模型,可以使應(yīng)用層的業(yè)務(wù)邏輯在該線程模型內(nèi)執(zhí)行,而非io-processor線程池.這樣不會影響網(wǎng)絡(luò)層的io處理.
閱讀全文
posted @
2014-02-03 23:38 landon 閱讀(2332) |
評論 (2) 編輯
JDK源碼筆記2-EnumSet/EnumMap
摘要: 用示例及注釋的形式介紹了EnumSet和EnumMap的核心實(shí)現(xiàn)及API使用.
閱讀全文
posted @
2014-02-03 18:34 landon 閱讀(1644) |
評論 (0) 編輯
Apache Maven基礎(chǔ)
摘要: Apache Maven基礎(chǔ)知識介紹.
閱讀全文
posted @
2014-02-03 00:02 landon 閱讀(2193) |
評論 (2) 編輯
Apache Ant基礎(chǔ)
摘要: Apache Ant基礎(chǔ)知識介紹.
閱讀全文
posted @
2014-02-01 20:40 landon 閱讀(1876) |
評論 (1) 編輯