Package io.helidon.grpc.client
Interface ClientMethodDescriptor.Rules
-
- All Known Implementing Classes:
ClientMethodDescriptor.Builder
- Enclosing class:
- ClientMethodDescriptor
public static interface ClientMethodDescriptor.Rules
ClientMethod configuration API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientMethodDescriptor.Rules
callCredentials(io.grpc.CallCredentials callCredentials)
Register the specifiedCallCredentials
to be used for this method.ClientMethodDescriptor.Rules
intercept(int priority, io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptors
for the method.ClientMethodDescriptor.Rules
intercept(io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptors
for the method.ClientMethodDescriptor.Rules
marshallerSupplier(MarshallerSupplier marshallerSupplier)
Register theMarshallerSupplier
for the method.ClientMethodDescriptor.Rules
methodHandler(MethodHandler methodHandler)
Set theMethodHandler
that can be used to invoke the method.ClientMethodDescriptor.Rules
requestType(Class type)
Sets the type of parameter of this method.ClientMethodDescriptor.Rules
responseType(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.Rules
instance 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.Rules
instance for fluent call chaining
-
intercept
ClientMethodDescriptor.Rules intercept(io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptors
for the method.- Parameters:
interceptors
- the interceptor(s) to register- Returns:
- this
ClientMethodDescriptor.Rules
instance for fluent call chaining
-
intercept
ClientMethodDescriptor.Rules intercept(int priority, io.grpc.ClientInterceptor... interceptors)
Register one or moreinterceptors
for the method.The added interceptors will be applied using the specified priority.
- Parameters:
priority
- the priority to assign to the interceptorsinterceptors
- one or moreClientInterceptor
s to register- Returns:
- this
ClientMethodDescriptor.Rules
to allow fluent method chaining
-
marshallerSupplier
ClientMethodDescriptor.Rules marshallerSupplier(MarshallerSupplier marshallerSupplier)
Register theMarshallerSupplier
for the method.If not set the default
MarshallerSupplier
from the service will be used.- Parameters:
marshallerSupplier
- theMarshallerSupplier
for the service- Returns:
- this
ClientMethodDescriptor.Rules
instance for fluent call chaining
-
callCredentials
ClientMethodDescriptor.Rules callCredentials(io.grpc.CallCredentials callCredentials)
Register the specifiedCallCredentials
to be used for this method. This overrides anyCallCredentials
set on theClientServiceDescriptor
.- Parameters:
callCredentials
- theCallCredentials
to set.- Returns:
- this
ClientMethodDescriptor.Rules
instance for fluent call chaining
-
methodHandler
ClientMethodDescriptor.Rules methodHandler(MethodHandler methodHandler)
Set theMethodHandler
that can be used to invoke the method.- Parameters:
methodHandler
- the {2link MethodHandler} to use- Returns:
- this
ClientMethodDescriptor.Rules
instance for fluent call chaining
-
-