public class GrpcCodecDefinition
extends java.lang.Object
GrpcCodec
Modifier and Type | Field and Description |
---|---|
static java.util.Collection<GrpcCodecDefinition> |
DEFAULT_DEFINITIONS
The default encodings used by gRPC.
|
static GrpcCodecDefinition |
GZIP_DEFINITION
The codec definition for gzip.
|
static GrpcCodecDefinition |
IDENTITY_DEFINITION
The codec definition for identity (no-op).
|
Constructor and Description |
---|
GrpcCodecDefinition(io.grpc.Codec codec,
boolean advertised,
CodecType codecType)
Creates a new GrpcCodecDefinition.
|
public static final GrpcCodecDefinition GZIP_DEFINITION
public static final GrpcCodecDefinition IDENTITY_DEFINITION
public static final java.util.Collection<GrpcCodecDefinition> DEFAULT_DEFINITIONS
public GrpcCodecDefinition(io.grpc.Codec codec, boolean advertised, CodecType codecType)
codec
- The codec bean.advertised
- Whether the codec should be advertised in the headers.codecType
- The type of the codec.