@ThreadSafe @ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/933") public abstract class MutableHandlerRegistry extends HandlerRegistry
HandlerRegistry
. Used by server implementations
that need to bind and unbind services that are exposed to remote clients.MutableHandlerRegistryImpl
Constructor and Description |
---|
MutableHandlerRegistry() |
Modifier and Type | Method and Description |
---|---|
abstract ServerServiceDefinition |
addService(ServerServiceDefinition service)
Returns
null , or previous service if service replaced an existing service. |
abstract boolean |
removeService(ServerServiceDefinition service)
Returns
false if service was not registered. |
lookupMethod, lookupMethod
@Nullable public abstract ServerServiceDefinition addService(ServerServiceDefinition service)
null
, or previous service if service
replaced an existing service.public abstract boolean removeService(ServerServiceDefinition service)
false
if service
was not registered.