Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.stub |
API for the Stub layer.
|
io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
io.grpc.xds.orca |
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(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.
|
Modifier and Type | Method and Description |
---|---|
static <ReqT,RespT> |
ServerCalls.asyncBidiStreamingCall(ServerCalls.BidiStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a bidi streaming method of the service. |
static <ReqT,RespT> |
ServerCalls.asyncClientStreamingCall(ServerCalls.ClientStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a client streaming method of the service. |
static <ReqT,RespT> |
ServerCalls.asyncServerStreamingCall(ServerCalls.ServerStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a server streaming method of the service. |
static <ReqT,RespT> |
ServerCalls.asyncUnaryCall(ServerCalls.UnaryMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a unary call method of the service. |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
TransmitStatusRuntimeExceptionInterceptor.interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next) |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
OrcaMetricReportingServerInterceptor.interceptCall(ServerCall<ReqT,RespT> call,
Metadata headers,
ServerCallHandler<ReqT,RespT> next) |