@ThreadSafe public abstract class MutableHandlerRegistry extends HandlerRegistry
HandlerRegistry
. Used by server implementations
that need to bind and unbind services that are exposed to remote clients.HandlerRegistry.Method
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
@Nullable public abstract ServerServiceDefinition addService(ServerServiceDefinition service)
null
, or previous service if service
replaced an existing service.@Nullable public abstract boolean removeService(ServerServiceDefinition service)
false
if service
was not registered.