Interface MarshallerSupplier

All Known Implementing Classes:
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 of MethodDescriptor.Marshaller instances for specific classes.
  • Field Details

  • Method Details

    • get

      <T> io.grpc.MethodDescriptor.Marshaller<T> get(Class<T> clazz)
      Obtain a MethodDescriptor.Marshaller for a type.
      Type Parameters:
      T - the type to be marshalled
      Parameters:
      clazz - the Class of the type to obtain the MethodDescriptor.Marshaller for
      Returns:
      a MethodDescriptor.Marshaller for a type
    • defaultInstance

      static MarshallerSupplier defaultInstance()
      Obtain the default marshaller.
      Returns:
      the default marshaller