Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.internal |
Interfaces and implementations that are internal to gRPC.
|
io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
Modifier and Type | Method and Description |
---|---|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
ServerInterceptor... interceptors) |
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 ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static <ReqT,RespT> |
InternalServerInterceptors.interceptCallHandler(ServerInterceptor interceptor,
ServerCallHandler<ReqT,RespT> callHandler) |
static <ReqT,RespT> |
InternalServerInterceptors.interceptCallHandlerCreate(ServerInterceptor interceptor,
ServerCallHandler<ReqT,RespT> callHandler) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(BindableService bindableService,
ServerInterceptor... interceptors) |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s 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 ServerCallHandler s 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 ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
Modifier and Type | Method and Description |
---|---|
T |
AbstractServerImplBuilder.intercept(ServerInterceptor interceptor) |
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() |
Copyright © 2018. All rights reserved.