Package org.apache.avro.grpc
Class AvroGrpcClient
java.lang.Object
org.apache.avro.grpc.AvroGrpcClient
Component that sets up a gRPC client for Avro's IDL and Serialization.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TCreates a gRPC client for Avro's interface with defaultCallOptions.static <T> TCreates a gRPC client for Avro's interface with providedCallOptions.
-
Method Details
-
create
Creates a gRPC client for Avro's interface with defaultCallOptions.- Type Parameters:
T- type of Avro Interface.- Parameters:
channel- the channel used for gRPCClientCalls.iface- Avro interface for which client is built.- Returns:
- a new client proxy.
-
create
public static <T> T create(io.grpc.Channel channel, Class<T> iface, io.grpc.CallOptions callOptions) Creates a gRPC client for Avro's interface with providedCallOptions.- Type Parameters:
T- type of Avro Interface.- Parameters:
channel- the channel used for gRPCClientCalls.iface- Avro interface for which client is built.callOptions- client call options for gRPC.- Returns:
- a new client proxy.
-