Modifier and Type | Method and Description |
---|---|
ServerCallHandler<ReqT,RespT> |
ServerMethodDefinition.getServerCallHandler()
Handler for incoming calls.
|
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
ServerServiceDefinition.Builder.addMethod(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Add a method to be supported by the service.
|
static <ReqT,RespT> |
ServerMethodDefinition.create(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Create a new instance.
|
static <ReqT,RespT> |
Contexts.interceptCall(io.grpc.Context context,
ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next)
Make the provided
Context Context.current() for the creation of a listener
to a received call and for all events received by that listener. |
<ReqT,RespT> |
ServerInterceptor.interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next)
|
ServerMethodDefinition<ReqT,RespT> |
ServerMethodDefinition.withServerCallHandler(ServerCallHandler<ReqT,RespT> handler)
Create a new method definition with a different call handler.
|