@ThreadSafe public final class MutableHandlerRegistryImpl extends MutableHandlerRegistry
MutableHandlerRegistry.
Uses ConcurrentHashMap to avoid service registration excessively
blocking method lookup.
HandlerRegistry.Method| Constructor and Description |
|---|
MutableHandlerRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
ServerServiceDefinition |
addService(ServerServiceDefinition service)
Returns
null, or previous service if service replaced an existing service. |
HandlerRegistry.Method |
lookupMethod(String methodName)
Lookup a
HandlerRegistry.Method by its fully-qualified name. |
boolean |
removeService(ServerServiceDefinition service)
Returns
false if service was not registered. |
@Nullable public ServerServiceDefinition addService(ServerServiceDefinition service)
MutableHandlerRegistrynull, or previous service if service replaced an existing service.addService in class MutableHandlerRegistrypublic boolean removeService(ServerServiceDefinition service)
MutableHandlerRegistryfalse if service was not registered.removeService in class MutableHandlerRegistry@Nullable public HandlerRegistry.Method lookupMethod(String methodName)
HandlerRegistryHandlerRegistry.Method by its fully-qualified name. All names are expected to be absolute
paths that start with '/'.lookupMethod in class HandlerRegistrymethodName - to lookup HandlerRegistry.Method for.null if no method for that name exists.