Package io.quarkus.grpc
Class GrpcClientUtils
- java.lang.Object
-
- io.quarkus.grpc.GrpcClientUtils
-
public class GrpcClientUtils extends Object
gRPC client utilities
-
-
Constructor Summary
Constructors Constructor Description GrpcClientUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TattachHeaders(T client, io.grpc.Metadata extraHeaders)Attach headers to a gRPC client.static <T> TgetProxiedObject(T client)
-
-
-
Method Detail
-
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)
-
-