Package io.grpc.rls

Class RlsProtoData.RouteLookupResponse

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static RlsProtoData.RouteLookupResponse create​(com.google.common.collect.ImmutableList<java.lang.String> targets, java.lang.String getHeaderData)  
      (package private) abstract java.lang.String getHeaderData()
      Returns optional header data to pass along to AFE in the X-Google-RLS-Data header.
      (package private) abstract com.google.common.collect.ImmutableList<java.lang.String> targets()
      Returns list of targets.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RouteLookupResponse

        RouteLookupResponse()
    • Method Detail

      • targets

        abstract com.google.common.collect.ImmutableList<java.lang.String> targets()
        Returns list of targets. Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type. The targets will be tried in order until a healthy one is found.
      • getHeaderData

        abstract java.lang.String getHeaderData()
        Returns optional header data to pass along to AFE in the X-Google-RLS-Data header. Cached with "target" and sent with all requests that match the request key. Allows the RLS to pass its work product to the eventual target.
      • create

        static RlsProtoData.RouteLookupResponse create​(com.google.common.collect.ImmutableList<java.lang.String> targets,
                                                       java.lang.String getHeaderData)