List of usage examples for io.netty.handler.codec.compression JdkZlibDecoder JdkZlibDecoder
public JdkZlibDecoder()
From source file:org.apache.giraph.conf.ImmutableClassesGiraphConfiguration.java
License:Apache License
/** * Get decoder for message decompression in netty * * @return byte to message decoder//from ww w.j a v a2s .co m */ public ByteToMessageDecoder getNettyCompressionDecoder() { switch (GiraphConstants.NETTY_COMPRESSION_ALGORITHM.get(this)) { case "SNAPPY": return new SnappyFramedDecoder(true); case "INFLATE": return new JdkZlibDecoder(); default: return null; } }