Package io.grpc.netty

Class UdsNameResolver

    • Constructor Detail

      • UdsNameResolver

        UdsNameResolver​(java.lang.String authority,
                        java.lang.String targetPath,
                        NameResolver.Args args)
    • Method Detail

      • getServiceAuthority

        public java.lang.String getServiceAuthority()
        Description copied from class: NameResolver
        Returns the authority used to authenticate connections to servers. It must be from a trusted source, because if the authority is tampered with, RPCs may be sent to the attackers which may leak sensitive user data.

        An implementation must generate it without blocking, typically in line, and must keep it unchanged. NameResolvers created from the same factory with the same argument must return the same authority.

        Specified by:
        getServiceAuthority in class NameResolver
      • resolve

        private void resolve()
      • shutdown

        public void shutdown()
        Description copied from class: NameResolver
        Stops the resolution. Updates to the Listener will stop.
        Specified by:
        shutdown in class NameResolver