Package io.grpc

Class HandlerRegistry

  • Direct Known Subclasses:
    MutableHandlerRegistry

    @ThreadSafe
    public abstract class HandlerRegistry
    extends java.lang.Object
    Registry of services and their methods used by servers to dispatching incoming calls.
    • Constructor Detail

      • HandlerRegistry

        public HandlerRegistry()
    • Method Detail

      • lookupMethod

        @Nullable
        public abstract ServerMethodDefinition<?,​?> lookupMethod​(java.lang.String methodName,
                                                                       @Nullable
                                                                       java.lang.String authority)
        Lookup a ServerMethodDefinition by its fully-qualified name.
        Parameters:
        methodName - to lookup ServerMethodDefinition for.
        authority - the authority for the desired method (to do virtual hosting). If null the first matching method will be returned.
        Returns:
        the resolved method or null if no method for that name exists.