Package io.grpc.rls

Class RlsProtoData.RouteLookupResponse

java.lang.Object
io.grpc.rls.RlsProtoData.RouteLookupResponse
Direct Known Subclasses:
AutoValue_RlsProtoData_RouteLookupResponse
Enclosing class:
RlsProtoData

@Immutable abstract static class RlsProtoData.RouteLookupResponse extends Object
A response from route lookup service.
  • Constructor Details

    • RouteLookupResponse

      RouteLookupResponse()
  • Method Details

    • targets

      abstract com.google.common.collect.ImmutableList<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 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<String> targets, String getHeaderData)