Package org.apache.avro.grpc
Class AvroGrpcServer
java.lang.Object
org.apache.avro.grpc.AvroGrpcServer
Provides components to set up a gRPC Server for Avro's IDL and serialization.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.grpc.ServerServiceDefinition
createServiceDefinition
(Class iface, Object impl) Creates aServerServiceDefinition
for Avro Interface and its implementation that can be passed a gRPC Server.
-
Method Details
-
createServiceDefinition
Creates aServerServiceDefinition
for Avro Interface and its implementation that can be passed a gRPC Server.- Parameters:
iface
- Avro generated RPC service interface for which service defintion is created.impl
- Implementation of the service interface to be invoked for requests.- Returns:
- a new server service definition.
-