public interface GrpcMessageDecoder<T>
Modifier and Type | Field and Description |
---|---|
static GrpcMessageDecoder<Buffer> |
GZIP |
static GrpcMessageDecoder<Buffer> |
IDENTITY |
Modifier and Type | Method and Description |
---|---|
T |
decode(GrpcMessage msg) |
static <T> GrpcMessageDecoder<T> |
decoder(com.google.protobuf.Parser<T> parser)
Create a decoder for a given protobuf
Parser . |
static <T> GrpcMessageDecoder<T> |
unmarshaller(io.grpc.MethodDescriptor.Marshaller<T> desc) |
static final GrpcMessageDecoder<Buffer> IDENTITY
static final GrpcMessageDecoder<Buffer> GZIP
static <T> GrpcMessageDecoder<T> decoder(com.google.protobuf.Parser<T> parser)
Parser
.parser
- the parser that returns decoded messages of type <T>
static <T> GrpcMessageDecoder<T> unmarshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)
T decode(GrpcMessage msg) throws CodecException
CodecException
Copyright © 2024 Eclipse. All rights reserved.