this.channelGroup = channelGroup;
}
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
SessionStatus status = new SessionStatus().ready();
pipeline.addLast("frameHandler", new MemcachedFrameDecoder(status, frameSize));
pipeline.addAfter("frameHandler", "commandDecoder", new MemcachedCommandDecoder(status));
pipeline.addAfter("commandDecoder", "commandHandler", new MemcachedCommandHandler(cache, version, verbose, idleTime, channelGroup));
pipeline.addAfter("commandHandler", "responseEncoder", new MemcachedResponseEncoder());
pipeline.addAfter("responseEncoder", "responseHandler", new StringEncoder());