Class CompressorUtil
java.lang.Object
io.opentelemetry.exporter.internal.compression.CompressorUtil
Utilities for resolving SPI
Compressors.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompressorvalidateAndResolveCompressor(String compressionMethod) Validate that thecompressionMethodis "none" or matches a registered compressor.
-
Method Details
-
validateAndResolveCompressor
Validate that thecompressionMethodis "none" or matches a registered compressor.- Returns:
nullifcompressionMethodis "none" or the registered compressor- Throws:
IllegalArgumentException- if no match is found
-