Uses of Class
io.grpc.ServerServiceDefinition
-
-
Uses of ServerServiceDefinition in io.grpc
Methods in io.grpc that return ServerServiceDefinition Modifier and Type Method Description ServerServiceDefinition
BindableService. bindService()
CreatesServerServiceDefinition
object for current instance of service implementation.ServerServiceDefinition
ServerServiceDefinition.Builder. build()
Construct new ServerServiceDefinition.static ServerServiceDefinition
ServerInterceptors. intercept(BindableService bindableService, ServerInterceptor... interceptors)
static ServerServiceDefinition
ServerInterceptors. intercept(BindableService bindableService, List<? extends ServerInterceptor> interceptors)
static ServerServiceDefinition
ServerInterceptors. intercept(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. intercept(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(BindableService bindableService, ServerInterceptor... interceptors)
static ServerServiceDefinition
ServerInterceptors. interceptForward(BindableService bindableService, List<? extends ServerInterceptor> interceptors)
static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a newServerServiceDefinition
whoseMethodDescriptor
serializes to and from InputStream for all methods.static <ReqT,RespT>
ServerServiceDefinitionServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<ReqT> requestMarshaller, MethodDescriptor.Marshaller<RespT> responseMarshaller)
Create a newServerServiceDefinition
withMethodDescriptor
for deserializing requests and separateMethodDescriptor
for serializing responses.static <T> ServerServiceDefinition
ServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<T> marshaller)
Create a newServerServiceDefinition
whoseMethodDescriptor
serializes to and from T for all methods.Methods in io.grpc that return types with arguments of type ServerServiceDefinition Modifier and Type Method 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>
HandlerRegistry. getServices()
Returns theServerServiceDefinition
s provided by the registry, 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.Methods in io.grpc with parameters of type ServerServiceDefinition Modifier and Type Method 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, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. intercept(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, ServerInterceptor... interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. interceptForward(ServerServiceDefinition serviceDef, List<? extends ServerInterceptor> interceptors)
Create a newServerServiceDefinition
whoseServerCallHandler
s will callinterceptors
before calling the pre-existingServerCallHandler
.static ServerServiceDefinition
ServerInterceptors. useInputStreamMessages(ServerServiceDefinition serviceDef)
Create a newServerServiceDefinition
whoseMethodDescriptor
serializes to and from InputStream for all methods.static <ReqT,RespT>
ServerServiceDefinitionServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<ReqT> requestMarshaller, MethodDescriptor.Marshaller<RespT> responseMarshaller)
Create a newServerServiceDefinition
withMethodDescriptor
for deserializing requests and separateMethodDescriptor
for serializing responses.static <T> ServerServiceDefinition
ServerInterceptors. useMarshalledMessages(ServerServiceDefinition serviceDef, MethodDescriptor.Marshaller<T> marshaller)
Create a newServerServiceDefinition
whoseMethodDescriptor
serializes to and from T for all methods.Method parameters in io.grpc with type arguments of type ServerServiceDefinition Modifier and Type Method Description T
ServerBuilder. addServices(List<ServerServiceDefinition> services)
Adds a list of service implementations to the handler registry together.
-