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 Protocol
getProtocol
(Class iface) Gets theProtocol
from the Avro Interface.static String
getServiceName
(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 theProtocol
from the Avro Interface.
-