Package io.grpc
Interface MethodDescriptor.ReflectableMarshaller<T>
-
- All Superinterfaces:
MethodDescriptor.Marshaller<T>
- All Known Subinterfaces:
MethodDescriptor.PrototypeMarshaller<T>
- Enclosing class:
- MethodDescriptor<ReqT,RespT>
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2222") public static interface MethodDescriptor.ReflectableMarshaller<T> extends MethodDescriptor.Marshaller<T>
A marshaller that supports retrieving it's type parameterT
at runtime.- Since:
- 1.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<T>
getMessageClass()
Returns theClass
that this marshaller serializes and deserializes.-
Methods inherited from interface io.grpc.MethodDescriptor.Marshaller
parse, stream
-
-
-
-
Method Detail
-
getMessageClass
java.lang.Class<T> getMessageClass()
Returns theClass
that this marshaller serializes and deserializes. If inheritance is allowed, this is the base class or interface for all supported classes.- Returns:
- non-
null
base class for all objects produced and consumed by this marshaller
-
-