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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface implemented by classes that can configure aGrpcMethodDescriptor.Rules.static interfaceMethod configuration API. -
Method Summary
Modifier and TypeMethodDescriptionReturn the call handler.context()Obtain theMapofContext.Keys and values to add to the call context when this method is invoked.Return gRPC method descriptor.WeightedBag<io.grpc.ServerInterceptor> Obtain theServerInterceptors 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 theMapofContext.Keys and values to add to the call context when this method is invoked.- Returns:
- an unmodifiable
MapofContext.Keys and values to add to the call context when this method is invoked
-
interceptors
Obtain theServerInterceptors to use for this method.- Returns:
- the
ServerInterceptors to use for this method
-
toString
-