-
- All Known Implementing Classes:
JavaMarshaller.Supplier,JsonbMarshaller.Supplier,MarshallerSupplier.DefaultMarshallerSupplier,MarshallerSupplier.ProtoMarshallerSupplier
- 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.static classMarshallerSupplier.ProtoMarshallerSupplierAMarshallerSupplierimplementation that supplies Protocol Buffer marshaller instances.
-
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.
-
-
-
Field Detail
-
PROTO
static final String PROTO
The name of the Protocol Buffer marshaller supplier.- See Also:
- Constant Field Values
-
DEFAULT
static final String DEFAULT
The name to use to specify the default marshaller supplier.- See Also:
- Constant Field Values
-
-
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
-
-