mirror of https://github.com/grpc/grpc-java.git
See #933 - Create InternalHandlerRegistry, an immutable look-up table. Handlers passed to ServerBuilder.addService() go to this registry. This covers the most common use cases. By keeping the registry internal we could freely change the registry's interface to accommodate optimizations, e.g., for hpack. - The internal registry uses a flat fullMethodName -> handler look-up table instead of a hierarchical one used before. It faster because it saves one look-up and a substring. - Introduces the fallback registry, settable by ServerBuilder.fallbackHandlerRegistry(), for advanced users who want a dynamic registry. Moved the current MutableHandlerRegistryImpl to io.grpc.util.MutableHandlerRegistry as a stock implementation of the fallback registry. The io.grpc.MutableHandlerRegistry interface is now removed. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||