上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页
  2014年1月2日
摘要: InnoDBimplements standard row-level locking where there are two types of locks,shared (S) locksandexclusive (X) locks. For information about record, gap, and next-key lock types, seeSection14.3.5.6, “InnoDBRecord, Gap, and Next-Key Locks”.InnoDB 实现了标准行级锁, 他又两种锁, 共享(S)锁和排他(X)锁. 需要看record, gap, next-k 阅读全文
posted @ 2014-01-02 19:16 ZimZz 阅读(6157) 评论(0) 推荐(1) 编辑
  2013年12月30日
摘要: Spring controller 如下@Controllerpublic class SimpleController { @ResponseBody @RequestMapping(value = "/hotel") public String hotel() { return "{\"status\":0,\"errmsg\":null,\"data\":{\"query\":\"酒店查询\",\"num\":65544,\"ur 阅读全文
posted @ 2013-12-30 00:17 ZimZz 阅读(11950) 评论(0) 推荐(0) 编辑
  2013年11月25日
摘要: ByteBufis always reference countedTo control the life cycle of aByteBufin a more predictable way, Netty does not rely on the garbage collector anymore but employs an explicit reference counter. Here's the basic rule:When a buffer is allocated, its initial reference count is 1.If the reference co 阅读全文
posted @ 2013-11-25 12:42 ZimZz 阅读(594) 评论(0) 推荐(0) 编辑
  2013年11月19日
摘要: HTTP Tunnelingis a technique by which communications performed using various networkprotocolsare encapsulated using theHTTPprotocol, the network protocols in question usually belonging to theTCP/IPfamily of protocols. The HTTP protocol therefore acts as a wrapper for a channel that the network proto 阅读全文
posted @ 2013-11-19 18:57 ZimZz 阅读(2420) 评论(0) 推荐(0) 编辑
  2013年10月20日
摘要: A nexus to a network socket or a component which is capable of I/O operations such as read, write, connect, and bind.一个网络套接字或组件的枢纽, 用来进行 I/O 操作, 例如 read, write, connect, bind.A channel provides a user:一个Channel的提供给用户的东西有:the current state of the channel (e.g. is it open? is it connected?),channel目前的 阅读全文
posted @ 2013-10-20 02:39 ZimZz 阅读(492) 评论(0) 推荐(0) 编辑
摘要: A list of ChannelHandlers which handles or intercepts inbound events and outbound operations of a Channel. ChannelPipeline implements an advanced form of the Intercepting Filter pattern to give a user full control over how an event is handled and how the ChannelHandlers in a pipeline interact with e 阅读全文
posted @ 2013-10-20 02:17 ZimZz 阅读(1900) 评论(0) 推荐(0) 编辑
  2013年10月19日
摘要: 1. 点击 New -- Project2. 设置工程父Pom, 如下 4.0.0 org.test test-parent 1.0.0.Beta com.google.guava guava 15.0 3. 删除父工程Src并创建子Module, 点击 New -- Module4. 将子module的java和resource目录设置为source目录右击java和resource目录, 选择 Mark Directory As -- Source Roo... 阅读全文
posted @ 2013-10-19 21:41 ZimZz 阅读(48217) 评论(1) 推荐(2) 编辑
  2013年10月18日
摘要: Table of ContentsPrefaceThe SolutionGetting StartedBefore Getting StartedWriting a Discard ServerLooking into the Received DataWriting an Echo ServerWriting a Time ServerWriting a Time ClientDealing with a Stream-based TransportSpeaking in POJO instead of ByteBufShutting Down Your ApplicationSummary 阅读全文
posted @ 2013-10-18 16:50 ZimZz 阅读(5073) 评论(0) 推荐(0) 编辑
摘要: INTERNET STANDARD Errata ExistNetwork Working Group J. Postel - ISIRequest for Comments: 868 K. Harrenstien - SRI Ma... 阅读全文
posted @ 2013-10-18 16:23 ZimZz 阅读(950) 评论(0) 推荐(0) 编辑
  2013年10月17日
摘要: ByteBufByteBuf是Netty的Server与Client之间通信的数据传输载体.他提供了一个byte数组(byte[])的抽象视图buffer创建我们推荐通过一个Unpooled的帮助方法来创建新的buffer而不是通过调用独立的构造器来创建随机访问索引就像普通的原声字节数组一样, By... 阅读全文
posted @ 2013-10-17 20:49 ZimZz 阅读(11969) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页