java.lang.Object
io.helidon.grpc.server.MethodDescriptor<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 aMethodDescriptor.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.PriorityBag<io.grpc.ServerInterceptor>
Obtain theServerInterceptor
s to use for this method.name()
Return the name of the method.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
-
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
-