- java.lang.Object
-
- io.helidon.grpc.server.MethodDescriptor<ReqT,ResT>
-
- Type Parameters:
ReqT
- request typeResT
- response type
public class MethodDescriptor<ReqT,ResT> extends Object
Encapsulates all metadata necessary to define a gRPC method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MethodDescriptor.Configurer<ReqT,ResT>
An interface implemented by classes that can configure aMethodDescriptor.Rules
.static interface
MethodDescriptor.Rules<ReqT,ResT>
Method configuration API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ServerCallHandler<ReqT,ResT>
callHandler()
Return the call handler.Map<io.grpc.Context.Key,Object>
context()
Obtain theMap
ofContext.Key
s and values to add to the call context when this method is invoked.io.grpc.MethodDescriptor<ReqT,ResT>
descriptor()
Return gRPC method descriptor.PriorityBag<io.grpc.ServerInterceptor>
interceptors()
Obtain theServerInterceptor
s to use for this method.String
name()
Return the name of the method.String
toString()
-
-
-
Method Detail
-
name
public String name()
Return the name of the method.- Returns:
- method name
-
descriptor
public io.grpc.MethodDescriptor<ReqT,ResT> descriptor()
Return gRPC method descriptor.- Returns:
- gRPC method descriptor
-
callHandler
public io.grpc.ServerCallHandler<ReqT,ResT> callHandler()
Return the call handler.- Returns:
- call handler
-
context
public Map<io.grpc.Context.Key,Object> 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
public PriorityBag<io.grpc.ServerInterceptor> interceptors()
Obtain theServerInterceptor
s to use for this method.- Returns:
- the
ServerInterceptor
s to use for this method
-
-