Package io.servicetalk.grpc.api
Interface GrpcSerializationProvider
Deprecated.
A provider for gRPC serialization/deserialization.
-
Method Summary
Modifier and TypeMethodDescription<T> HttpDeserializer<T>
deserializerFor
(ContentCodec coding, Class<T> type) Deprecated.<T> HttpSerializer<T>
serializerFor
(ContentCodec coding, Class<T> type) Deprecated.Deprecated.SupportedContentCodec
s for thisGrpcSerializationProvider
.
-
Method Details
-
supportedMessageCodings
List<ContentCodec> supportedMessageCodings()Deprecated.SupportedContentCodec
s for thisGrpcSerializationProvider
. Content codings will be used to encoded and decode gRPC messages according to configuration of client and server.- Returns:
- supported
ContentCodec
s for thisGrpcSerializationProvider
-
serializerFor
Deprecated.- Type Parameters:
T
- The type of object to serialize.- Parameters:
coding
-ContentCodec
for the serializer.type
- TheClass
type that the returnedHttpSerializer
can serialize.- Returns:
- a
HttpSerializer
for aClass
of typeGrpcSerializationProvider
.
-
deserializerFor
Deprecated.- Type Parameters:
T
- The type of object to deserialize.- Parameters:
coding
-ContentCodec
for the deserializer.type
- TheClass
type that the return value will deserialize.- Returns:
- a
HttpDeserializer
for aClass
of typeGrpcSerializationProvider
.
-
MethodDescriptor
. Compression is configured per route. gRPC framing is internalized in the gRPC implementation.