}
//ObjectEncoder encoder = new ObjectEncoder();
//ObjectDecoder decoder = new ObjectDecoder(4194304, ClassResolvers.cacheDisabled(null));
MixMessageEncoder encoder = new MixMessageEncoder();
MixMessageDecoder decoder = new MixMessageDecoder();
if(throughputCounter != null) {
pipeline.addLast(throughputCounter, decoder, encoder, requestHandler);
} else {
pipeline.addLast(decoder, encoder, requestHandler);