Class JavaMarshaller<T>

  • Type Parameters:
    T - the type of value to to be marshalled
    All Implemented Interfaces:

    public class JavaMarshaller<T>
    extends Object
    implements io.grpc.MethodDescriptor.Marshaller<T>
    An implementation of a gRPC MethodDescriptor.Marshaller that uses Java serialization.
    • Constructor Detail

      • JavaMarshaller

        public JavaMarshaller()
    • Method Detail

      • stream

        public InputStream stream​(T obj)
        Specified by:
        stream in interface io.grpc.MethodDescriptor.Marshaller<T>
      • parse

        public T parse​(InputStream in)
        Specified by:
        parse in interface io.grpc.MethodDescriptor.Marshaller<T>