Package org.apache.avro.grpc
Class AvroGrpcUtils
java.lang.Object
org.apache.avro.grpc.AvroGrpcUtils
Utility methods for using Avro IDL and serialization with gRPC.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolgetProtocol(Class iface) Gets theProtocolfrom the Avro Interface.static StringgetServiceName(Class iface) Provides a a unique gRPC service name for Avro RPC interface or its subclass Callback Interface.
-
Method Details
-
getServiceName
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
Gets theProtocolfrom the Avro Interface.
-