Package io.helidon.grpc.client
Interface ClientMethodDescriptor.Rules
-
- All Known Implementing Classes:
ClientMethodDescriptor.Builder
- Enclosing class:
- ClientMethodDescriptor
public static interface ClientMethodDescriptor.RulesClientMethod configuration API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientMethodDescriptor.RulescallCredentials(io.grpc.CallCredentials callCredentials)Register the specifiedCallCredentialsto be used for this method.ClientMethodDescriptor.Rulesintercept(int priority, io.grpc.ClientInterceptor... interceptors)Register one or moreinterceptorsfor the method.ClientMethodDescriptor.Rulesintercept(io.grpc.ClientInterceptor... interceptors)Register one or moreinterceptorsfor the method.ClientMethodDescriptor.RulesmarshallerSupplier(MarshallerSupplier marshallerSupplier)Register theMarshallerSupplierfor the method.ClientMethodDescriptor.RulesmethodHandler(MethodHandler methodHandler)Set theMethodHandlerthat can be used to invoke the method.ClientMethodDescriptor.RulesrequestType(Class type)Sets the type of parameter of this method.ClientMethodDescriptor.RulesresponseType(Class type)Sets the type of parameter of this method.
-
-
-
Method Detail
-
requestType
ClientMethodDescriptor.Rules requestType(Class type)
Sets the type of parameter of this method.- Parameters:
type- The type of parameter of this method.- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
responseType
ClientMethodDescriptor.Rules responseType(Class type)
Sets the type of parameter of this method.- Parameters:
type- The type of parameter of this method.- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
intercept
ClientMethodDescriptor.Rules intercept(io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptorsfor the method.- Parameters:
interceptors- the interceptor(s) to register- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
intercept
ClientMethodDescriptor.Rules intercept(int priority, io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptorsfor the method.The added interceptors will be applied using the specified priority.
- Parameters:
priority- the priority to assign to the interceptorsinterceptors- one or moreClientInterceptors to register- Returns:
- this
ClientMethodDescriptor.Rulesto allow fluent method chaining
-
marshallerSupplier
ClientMethodDescriptor.Rules marshallerSupplier(MarshallerSupplier marshallerSupplier)
Register theMarshallerSupplierfor the method.If not set the default
MarshallerSupplierfrom the service will be used.- Parameters:
marshallerSupplier- theMarshallerSupplierfor the service- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
callCredentials
ClientMethodDescriptor.Rules callCredentials(io.grpc.CallCredentials callCredentials)
Register the specifiedCallCredentialsto be used for this method. This overrides anyCallCredentialsset on theClientServiceDescriptor.- Parameters:
callCredentials- theCallCredentialsto set.- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
methodHandler
ClientMethodDescriptor.Rules methodHandler(MethodHandler methodHandler)
Set theMethodHandlerthat can be used to invoke the method.- Parameters:
methodHandler- the {2link MethodHandler} to use- Returns:
- this
ClientMethodDescriptor.Rulesinstance for fluent call chaining
-
-