<ReqT,RespT> ServerServiceDefinition.Builder |
ServerServiceDefinition.Builder.addMethod(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler) |
Add a method to be supported by the service.
|
static <ReqT,RespT> ServerMethodDefinition<ReqT,RespT> |
ServerMethodDefinition.create(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler) |
Create a new instance.
|
static <ReqT,RespT> ServerCall.Listener<ReqT> |
Contexts.interceptCall(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> ServerCall.Listener<ReqT> |
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.
|