Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
Class GrpcClientMethodDescriptor.Builder
java.lang.Object
io.helidon.webclient.grpc.GrpcClientMethodDescriptor.Builder
- All Implemented Interfaces:
Builder<GrpcClientMethodDescriptor.Builder,
,GrpcClientMethodDescriptor> GrpcClientMethodDescriptor.Rules
,Supplier<GrpcClientMethodDescriptor>
- Enclosing class:
GrpcClientMethodDescriptor
public static class GrpcClientMethodDescriptor.Builder
extends Object
implements GrpcClientMethodDescriptor.Rules, Builder<GrpcClientMethodDescriptor.Builder,GrpcClientMethodDescriptor>
MethodDescriptor
builder implementation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns a new instance ofGrpcClientMethodDescriptor
.callCredentials
(io.grpc.CallCredentials callCredentials) Register the specifiedCallCredentials
to be used for this method.intercept
(double weight, io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptors
for the method.intercept
(io.grpc.ClientInterceptor... interceptors) Register one or moreinterceptors
for the method.marshallerSupplier
(MarshallerSupplier supplier) Register theMarshallerSupplier
for the method.methodHandler
(MethodHandler<?, ?> methodHandler) Set theMethodHandler
that 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
Description copied from interface:GrpcClientMethodDescriptor.Rules
Sets the type of parameter of this method.- Specified by:
requestType
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
type
- The type of parameter of this method.- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
responseType
Description copied from interface:GrpcClientMethodDescriptor.Rules
Sets the type of parameter of this method.- Specified by:
responseType
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
type
- The type of parameter of this method.- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
intercept
Description copied from interface:GrpcClientMethodDescriptor.Rules
Register one or moreinterceptors
for the method.- Specified by:
intercept
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
interceptors
- the interceptor(s) to register- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
intercept
public GrpcClientMethodDescriptor.Builder intercept(double weight, io.grpc.ClientInterceptor... interceptors) Description copied from interface:GrpcClientMethodDescriptor.Rules
Register one or moreinterceptors
for the method.The added interceptors will be applied using the specified priority.
- Specified by:
intercept
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
weight
- the weight to assign to the interceptorsinterceptors
- one or moreClientInterceptor
s to register- Returns:
- this
GrpcClientMethodDescriptor.Rules
to allow fluent method chaining
-
marshallerSupplier
Description copied from interface:GrpcClientMethodDescriptor.Rules
Register theMarshallerSupplier
for the method.If not set the default
MarshallerSupplier
from the service will be used.- Specified by:
marshallerSupplier
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
supplier
- theMarshallerSupplier
for the service- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
methodHandler
Description copied from interface:GrpcClientMethodDescriptor.Rules
Set theMethodHandler
that can be used to invoke the method.- Specified by:
methodHandler
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
methodHandler
- the {2link MethodHandler} to use- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
callCredentials
Description copied from interface:GrpcClientMethodDescriptor.Rules
Register the specifiedCallCredentials
to be used for this method. This overrides anyCallCredentials
set on theGrpcClientMethodDescriptor
.- Specified by:
callCredentials
in interfaceGrpcClientMethodDescriptor.Rules
- Parameters:
callCredentials
- theCallCredentials
to set.- Returns:
- this
GrpcClientMethodDescriptor.Rules
instance for fluent call chaining
-
build
Builds and returns a new instance ofGrpcClientMethodDescriptor
.- Specified by:
build
in interfaceBuilder<GrpcClientMethodDescriptor.Builder,
GrpcClientMethodDescriptor> - Returns:
- a new instance of
GrpcClientMethodDescriptor
-