-
- 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.Marshaller
instances for specific classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MarshallerSupplier.DefaultMarshallerSupplier
The defaultMarshallerSupplier
.static class
MarshallerSupplier.ProtoMarshallerSupplier
AMarshallerSupplier
implementation that supplies Protocol Buffer marshaller instances.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MarshallerSupplier
defaultInstance()
Obtain the default marshaller.<T> io.grpc.MethodDescriptor.Marshaller<T>
get(Class<T> clazz)
Obtain aMethodDescriptor.Marshaller
for 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.Marshaller
for a type.- Type Parameters:
T
- the type to be marshalled- Parameters:
clazz
- theClass
of the type to obtain theMethodDescriptor.Marshaller
for- Returns:
- a
MethodDescriptor.Marshaller
for a type
-
defaultInstance
static MarshallerSupplier defaultInstance()
Obtain the default marshaller.- Returns:
- the default marshaller
-
-