Package io.helidon.grpc.core
Interface MarshallerSupplier
-
- All Known Implementing Classes:
MarshallerSupplier.DefaultMarshallerSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MarshallerSupplier
A supplier ofMethodDescriptor.Marshallerinstances for specific classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMarshallerSupplier.DefaultMarshallerSupplierThe defaultMarshallerSupplier.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MarshallerSupplierdefaultInstance()Obtain the default marshaller.<T> io.grpc.MethodDescriptor.Marshaller<T>get(Class<T> clazz)Obtain aMethodDescriptor.Marshallerfor a type.
-
-
-
Method Detail
-
get
<T> io.grpc.MethodDescriptor.Marshaller<T> get(Class<T> clazz)
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
-
defaultInstance
static MarshallerSupplier defaultInstance()
Obtain the default marshaller.- Returns:
- the default marshaller
-
-