Package io.quarkus.grpc
Class GrpcClientUtils
java.lang.Object
io.quarkus.grpc.GrpcClientUtils
gRPC client utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TattachHeaders(T client, io.grpc.Metadata extraHeaders) Attach headers to a gRPC client.static <T> TgetProxiedObject(T client)
-
Constructor Details
-
GrpcClientUtils
public GrpcClientUtils()
-
-
Method Details
-
attachHeaders
public static <T> T attachHeaders(T client, io.grpc.Metadata extraHeaders) Attach headers to a gRPC client. To make a call with headers, first invoke this method and then perform the intended call with the returned client- Type Parameters:
T- type of the client- Parameters:
client- any kind of gRPC clientextraHeaders- headers to attach- Returns:
- a client with headers attached
-
getProxiedObject
public static <T> T getProxiedObject(T client)
-