Class AvroGrpcUtils

java.lang.Object
org.apache.avro.grpc.AvroGrpcUtils

public final class AvroGrpcUtils extends Object
Utility methods for using Avro IDL and serialization with gRPC.
  • Method Details

    • getServiceName

      public static String getServiceName(Class iface)
      Provides a a unique gRPC service name for Avro RPC interface or its subclass Callback Interface.
      Parameters:
      iface - Avro RPC interface.
      Returns:
      unique service name for gRPC.
    • getProtocol

      public static Protocol getProtocol(Class iface)
      Gets the Protocol from the Avro Interface.