Class JavaMarshaller<T>

java.lang.Object
io.helidon.grpc.core.JavaMarshaller<T>
Type Parameters:
T - the type of value to to be marshalled
All Implemented Interfaces:
io.grpc.MethodDescriptor.Marshaller<T>

@Singleton @Named("java") @Deprecated(since="2.3.0", forRemoval=true) public class JavaMarshaller<T> extends Object implements io.grpc.MethodDescriptor.Marshaller<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Not suitable for production use, and will be removed in 3.0. Please use one of the other supported marshallers instead.
An implementation of a gRPC MethodDescriptor.Marshaller that uses Java serialization.

This marshaller is disabled by default starting with Helidon 2.3.0, and must be enabled explicitly by setting grpc.marshaller.java.enabled configuration property to true before it can be used.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    A MarshallerSupplier implementation that supplies instances of JavaMarshaller.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final JavaMarshaller
    Deprecated, for removal: This API element is subject to removal in a future version.
    A singleton instance of a JavaMarshaller.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    The name of this marshaller.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> JavaMarshaller<T>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Obtain the singleton instance of a JavaMarshaller.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    stream(T obj)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      The name of this marshaller.
      See Also:
    • INSTANCE

      public static final JavaMarshaller INSTANCE
      Deprecated, for removal: This API element is subject to removal in a future version.
      A singleton instance of a JavaMarshaller.
  • Method Details

    • instance

      public static <T> JavaMarshaller<T> instance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Obtain the singleton instance of a JavaMarshaller.
      Type Parameters:
      T - the type the marshaller supports
      Returns:
      an instance of a JavaMarshaller
    • stream

      public InputStream stream(T obj)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      stream in interface io.grpc.MethodDescriptor.Marshaller<T>
    • parse

      public T parse(InputStream in)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      parse in interface io.grpc.MethodDescriptor.Marshaller<T>