Class CompressorUtil
java.lang.Object
io.opentelemetry.exporter.internal.compression.CompressorUtil
Utilities for resolving SPI
Compressor
s.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map
<String, Compressor> static Compressor
validateAndResolveCompressor
(String compressionMethod) Validate that thecompressionMethod
is "none" or matches a registered compressor.
-
Field Details
-
compressorRegistry
-
-
Constructor Details
-
CompressorUtil
private CompressorUtil()
-
-
Method Details
-
validateAndResolveCompressor
Validate that thecompressionMethod
is "none" or matches a registered compressor.- Returns:
null
ifcompressionMethod
is "none" or the registered compressor- Throws:
IllegalArgumentException
- if no match is found
-
buildCompressorRegistry
-