Package com.rabbitmq.stream.compression
Class CommonsCompressCompressionCodecFactory
java.lang.Object
com.rabbitmq.stream.compression.CommonsCompressCompressionCodecFactory
- All Implemented Interfaces:
CompressionCodecFactory
public class CommonsCompressCompressionCodecFactory
extends Object
implements CompressionCodecFactory
CompressionCodecFactory
creating codecs using Apache Commons Compress
implementations.
The framed format is used for SNAPPY and LZ4.
All but ZSTD compression codecs are implemented in Commons Compress. The ZSTD codec uses the zstd-jni library.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Compression compression) Get a compression codec for a given type of compression.
-
Constructor Details
-
CommonsCompressCompressionCodecFactory
public CommonsCompressCompressionCodecFactory()
-
-
Method Details
-
get
Description copied from interface:CompressionCodecFactory
Get a compression codec for a given type of compression.- Specified by:
get
in interfaceCompressionCodecFactory
- Parameters:
compression
- the type of compression codec- Returns:
- the appropriate compression codec
-