Package com.rabbitmq.stream.compression
Class DefaultCompressionCodecFactory
java.lang.Object
com.rabbitmq.stream.compression.DefaultCompressionCodecFactory
- All Implemented Interfaces:
CompressionCodecFactory
CompressionCodecFactory
implementation using various compression libraries.
The GZIP codec is based on the JDK implementation, the SNAPPY codec uses Xerial Snappy (framed), the LZ4 codec uses LZ4 Java (framed), the ZSTD codec uses zstd-jni.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Compression compression) Get a compression codec for a given type of compression.
-
Constructor Details
-
DefaultCompressionCodecFactory
public DefaultCompressionCodecFactory()
-
-
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
-