ServerBootstrap bootstrap = new ServerBootstrap(channelFactory);
allChannels = new DefaultChannelGroup("jmemcachedChannelGroup");
ChannelPipelineFactory pipelineFactory;
if (binary)
pipelineFactory = new MemcachedBinaryPipelineFactory(cache, memcachedVersion, verbose, idleTime, allChannels);
else
pipelineFactory = new MemcachedPipelineFactory(cache, memcachedVersion, verbose, idleTime, receiveBufferSize, allChannels);
bootstrap.setPipelineFactory(pipelineFactory);