Interface GrpcClient.Stub<A extends ExchangeContext,B extends GrpcClient.Stub<A,B>>

Type Parameters:
A - the exchange context type
B - the stub type
All Known Subinterfaces:
GrpcClient.CloseableStub<A,B>
Enclosing interface:
GrpcClient

public static interface GrpcClient.Stub<A extends ExchangeContext,B extends GrpcClient.Stub<A,B>>

A base gRPC client stub definition.

This is intended to be used when generating gRPC client stub from Protocol buffer definitions.

Since:
1.9
Author:
Jeremy Kuhn
  • Method Details

    • withMetadata

      B withMetadata(Consumer<GrpcOutboundRequestMetadata> metadataConfigurer)

      Returns a new stub configured with the specified metadata.

      Parameters:
      metadataConfigurer - a gRPC request metadata configurer
      Returns:
      a configured stub