Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
Interface GrpcClientMethodDescriptor.Rules
- All Known Implementing Classes:
GrpcClientMethodDescriptor.Builder
- Enclosing class:
GrpcClientMethodDescriptor
public static interface GrpcClientMethodDescriptor.Rules
ClientMethod configuration API.
-
Method Summary
Modifier and TypeMethodDescriptioncallCredentials(io.grpc.CallCredentials callCredentials) Register the specifiedCallCredentialsto be used for this method.intercept(double weight, io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptorsfor the method.intercept(io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptorsfor the method.marshallerSupplier(MarshallerSupplier marshallerSupplier) Register theMarshallerSupplierfor the method.methodHandler(MethodHandler<?, ?> methodHandler) Set theMethodHandlerthat can be used to invoke the method.requestType(Class<?> type) Sets the type of parameter of this method.responseType(Class<?> type) Sets the type of parameter of this method.
-
Method Details
-
requestType
Sets the type of parameter of this method.- Parameters:
type- The type of parameter of this method.- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-
responseType
Sets the type of parameter of this method.- Parameters:
type- The type of parameter of this method.- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-
intercept
Register one or moreinterceptorsfor the method.- Parameters:
interceptors- the interceptor(s) to register- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-
intercept
GrpcClientMethodDescriptor.Rules intercept(double weight, io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptorsfor the method.The added interceptors will be applied using the specified priority.
- Parameters:
weight- the weight to assign to the interceptorsinterceptors- one or moreClientInterceptors to register- Returns:
- this
GrpcClientMethodDescriptor.Rulesto allow fluent method chaining
-
marshallerSupplier
Register theMarshallerSupplierfor the method.If not set the default
MarshallerSupplierfrom the service will be used.- Parameters:
marshallerSupplier- theMarshallerSupplierfor the service- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-
callCredentials
Register the specifiedCallCredentialsto be used for this method. This overrides anyCallCredentialsset on theGrpcClientMethodDescriptor.- Parameters:
callCredentials- theCallCredentialsto set.- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-
methodHandler
Set theMethodHandlerthat can be used to invoke the method.- Parameters:
methodHandler- the {2link MethodHandler} to use- Returns:
- this
GrpcClientMethodDescriptor.Rulesinstance for fluent call chaining
-