Package io.helidon.grpc.core
Class JsonbMarshaller<T>
- java.lang.Object
-
- io.helidon.grpc.core.JsonbMarshaller<T>
-
- Type Parameters:
T
- the type of value to be marshalled
- All Implemented Interfaces:
io.grpc.MethodDescriptor.Marshaller<T>
public class JsonbMarshaller<T> extends Object implements io.grpc.MethodDescriptor.Marshaller<T>
An implementation of a gRPCMethodDescriptor.Marshaller
that uses JSONB for serialization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonbMarshaller.Supplier
AMarshallerSupplier
implementation that supplies instances ofJsonbMarshaller
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
parse(InputStream in)
InputStream
stream(T obj)
-
-
-
Method Detail
-
stream
public InputStream stream(T obj)
- Specified by:
stream
in interfaceio.grpc.MethodDescriptor.Marshaller<T>
-
parse
public T parse(InputStream in)
- Specified by:
parse
in interfaceio.grpc.MethodDescriptor.Marshaller<T>
-
-