@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1704") @ThreadSafe public final class CompressorRegistry extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static CompressorRegistry |
getDefaultInstance() |
Returns the default instance used by gRPC when the registry is not specified.
|
Compressor |
lookupCompressor(java.lang.String compressorName) |
|
static CompressorRegistry |
newEmptyInstance() |
Returns a new instance with no registered compressors.
|
void |
register(Compressor c) |
Registers a compressor for both decompression and message encoding negotiation.
|
public static CompressorRegistry getDefaultInstance()
public static CompressorRegistry newEmptyInstance()
@Nullable public Compressor lookupCompressor(java.lang.String compressorName)
public void register(Compressor c)
c
- The compressor to register