| Modifier and Type | Field and Description |
|---|---|
static 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.
|
| Modifier and Type | Method and Description |
|---|---|
io.grpc.Codec |
getCodec() |
CodecType |
getCodecType() |
boolean |
isAdvertised() |
public static final GrpcCodecDefinition GZIP_DEFINITION
public static final GrpcCodecDefinition IDENTITY_DEFINITION
public static final 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.public io.grpc.Codec getCodec()
public boolean isAdvertised()
public CodecType getCodecType()