| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.protobuf.services |
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
|
| io.grpc.testing |
API that is useful for testing gRPC.
|
| 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 |
|---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
ServerInterceptor... interceptors) |
T |
ForwardingServerBuilder.intercept(ServerInterceptor interceptor) |
T |
ServerBuilder.intercept(ServerInterceptor interceptor)
Adds a
ServerInterceptor that is run for all services on the server. |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandlers will call
interceptors before calling the pre-existing ServerCallHandler. |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
ServerInterceptor... interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandlers will call
interceptors before calling the pre-existing ServerCallHandler. |
| Modifier and Type | Method and Description |
|---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.intercept(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandlers will call
interceptors before calling the pre-existing ServerCallHandler. |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
List<? extends ServerInterceptor> interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandlers will call
interceptors before calling the pre-existing ServerCallHandler. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ServerInterceptor |
BinaryLogProvider.getServerInterceptor(String fullMethodName)
Returns a
ServerInterceptor for binary logging. |
| Modifier and Type | Method and Description |
|---|---|
static ServerInterceptor |
TestUtils.recordRequestHeadersInterceptor(AtomicReference<Metadata> headersCapture)
Capture the request headers from a client.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TransmitStatusRuntimeExceptionInterceptor
A class that intercepts uncaught exceptions of type
StatusRuntimeException and handles
them by closing the ServerCall, and transmitting the exception's status and metadata
to the client. |
| Modifier and Type | Method and Description |
|---|---|
static ServerInterceptor |
TransmitStatusRuntimeExceptionInterceptor.instance() |
| Modifier and Type | Class and Description |
|---|---|
class |
OrcaMetricReportingServerInterceptor
A
ServerInterceptor that intercepts a ServerCall by running server-side RPC
handling under a Context that records custom per-request metrics provided by server
applications and sends to client side along with the response in the format of Open Request
Cost Aggregation (ORCA). |