- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A supplier of
MethodDescriptor.Marshaller instances for specific
classes.-
Method Summary
Modifier and TypeMethodDescriptionstatic MarshallerSuppliercreate()Creates a default marshaller supplier.<T> io.grpc.MethodDescriptor.Marshaller<T> Obtain aMethodDescriptor.Marshallerfor a type.
-
Method Details
-
get
Obtain aMethodDescriptor.Marshallerfor a type.- Type Parameters:
T- the type to be marshalled- Parameters:
clazz- theClassof the type to obtain theMethodDescriptor.Marshallerfor- Returns:
- a
MethodDescriptor.Marshallerfor a type
-
create
Creates a default marshaller supplier.- Returns:
- the default marshaller supplier
-