Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.channelz.v1 | |
io.grpc.health.v1 | |
io.grpc.lb.v1 | |
io.grpc.reflection.v1alpha | |
io.grpc.services |
Service definitions and utilities for the pre-defined gRPC services.
|
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 |
---|---|
ServerServiceDefinition |
BindableService.bindService()
Creates
ServerServiceDefinition object for current instance of service implementation. |
ServerServiceDefinition |
ServerServiceDefinition.Builder.build()
Construct new ServerServiceDefinition.
|
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
List<? extends ServerInterceptor> interceptors) |
static ServerServiceDefinition |
ServerInterceptors.intercept(BindableService bindableService,
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.intercept(ServerServiceDefinition serviceDef,
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(BindableService bindableService,
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 . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from InputStream for all methods. |
static <ReqT,RespT> |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<ReqT> requestMarshaller,
MethodDescriptor.Marshaller<RespT> responseMarshaller)
Create a new
ServerServiceDefinition with MethodDescriptor for deserializing
requests and separate MethodDescriptor for serializing responses. |
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods. |
Modifier and Type | Method and Description |
---|---|
List<ServerServiceDefinition> |
Server.getImmutableServices()
Returns immutable services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
Server.getMutableServices()
Returns mutable services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
Server.getServices()
Returns all services registered with the server, or an empty list if not supported by the
implementation.
|
List<ServerServiceDefinition> |
HandlerRegistry.getServices()
Returns the
ServerServiceDefinition s provided by the registry, or an empty list if not
supported by the implementation. |
Modifier and Type | Method and Description |
---|---|
T |
ForwardingServerBuilder.addService(ServerServiceDefinition service) |
abstract T |
ServerBuilder.addService(ServerServiceDefinition service)
Adds a service implementation to the handler registry.
|
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.intercept(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
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 . |
static ServerServiceDefinition |
ServerInterceptors.interceptForward(ServerServiceDefinition serviceDef,
ServerInterceptor... interceptors)
Create a new
ServerServiceDefinition whose ServerCallHandler s will call
interceptors before calling the pre-existing ServerCallHandler . |
static ServerServiceDefinition |
ServerInterceptors.useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from InputStream for all methods. |
static <ReqT,RespT> |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<ReqT> requestMarshaller,
MethodDescriptor.Marshaller<RespT> responseMarshaller)
Create a new
ServerServiceDefinition with MethodDescriptor for deserializing
requests and separate MethodDescriptor for serializing responses. |
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller)
Create a new
ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods. |
Modifier and Type | Method and Description |
---|---|
T |
ServerBuilder.addServices(List<ServerServiceDefinition> services)
Adds a list of service implementations to the handler registry together.
|
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
ChannelzGrpc.ChannelzImplBase.bindService() |
static ServerServiceDefinition |
ChannelzGrpc.bindService(ChannelzGrpc.AsyncService service) |
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
HealthGrpc.HealthImplBase.bindService() |
static ServerServiceDefinition |
HealthGrpc.bindService(HealthGrpc.AsyncService service) |
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
LoadBalancerGrpc.LoadBalancerImplBase.bindService() |
static ServerServiceDefinition |
LoadBalancerGrpc.bindService(LoadBalancerGrpc.AsyncService service) |
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
ServerReflectionGrpc.ServerReflectionImplBase.bindService() |
static ServerServiceDefinition |
ServerReflectionGrpc.bindService(ServerReflectionGrpc.AsyncService service) |
Modifier and Type | Method and Description |
---|---|
static List<ServerServiceDefinition> |
AdminInterface.getStandardServices()
Returns a list of gRPC's built-in admin services.
|
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
MutableHandlerRegistry.addService(BindableService bindableService)
Registers a service.
|
ServerServiceDefinition |
MutableHandlerRegistry.addService(ServerServiceDefinition service)
Registers a service.
|
Modifier and Type | Method and Description |
---|---|
List<ServerServiceDefinition> |
MutableHandlerRegistry.getServices()
Note: This does not necessarily return a consistent view of the map.
|
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
MutableHandlerRegistry.addService(ServerServiceDefinition service)
Registers a service.
|
boolean |
MutableHandlerRegistry.removeService(ServerServiceDefinition service)
Removes a registered service.
|
Modifier and Type | Method and Description |
---|---|
ServerServiceDefinition |
OrcaServiceImpl.bindService() |