コード例 #1
0
 protected MemcachedTCPSession createSession(
     SocketChannel socketChannel, InetSocketAddressWrapper wrapper) {
   MemcachedTCPSession session = (MemcachedTCPSession) this.buildSession(socketChannel);
   session.setInetSocketAddressWrapper(wrapper);
   this.selectorManager.registerSession(session, EventType.ENABLE_READ);
   session.start();
   session.onEvent(EventType.CONNECTED, null);
   return session;
 }