Module io.helidon.webserver.grpc
Package io.helidon.webserver.grpc
Class GrpcMethodDescriptor<ReqT,ResT>
java.lang.Object
io.helidon.webserver.grpc.GrpcMethodDescriptor<ReqT,ResT>
- Type Parameters:
ReqT
- request typeResT
- response type
Encapsulates all metadata necessary to define a gRPC method.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An interface implemented by classes that can configure aGrpcMethodDescriptor.Rules
.static interface
Method configuration API. -
Method Summary
Modifier and TypeMethodDescriptionReturn the call handler.context()
Obtain theMap
ofContext.Key
s and values to add to the call context when this method is invoked.Return gRPC method descriptor.WeightedBag
<io.grpc.ServerInterceptor> Obtain theServerInterceptor
s to use for this method.name()
Return the name of the method.Return the method's request type.Return the method's response type.toString()
-
Method Details
-
name
Return the name of the method.- Returns:
- method name
-
descriptor
Return gRPC method descriptor.- Returns:
- gRPC method descriptor
-
callHandler
Return the call handler.- Returns:
- call handler
-
requestType
Return the method's request type.- Returns:
- request type
-
responseType
Return the method's response type.- Returns:
- response type
-
context
Obtain theMap
ofContext.Key
s and values to add to the call context when this method is invoked.- Returns:
- an unmodifiable
Map
ofContext.Key
s and values to add to the call context when this method is invoked
-
interceptors
Obtain theServerInterceptor
s to use for this method.- Returns:
- the
ServerInterceptor
s to use for this method
-
toString
-