Package io.grpc.rls
Class RlsProtoData.RouteLookupResponse
java.lang.Object
io.grpc.rls.RlsProtoData.RouteLookupResponse
- Direct Known Subclasses:
AutoValue_RlsProtoData_RouteLookupResponse
- Enclosing class:
RlsProtoData
A response from route lookup service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static RlsProtoData.RouteLookupResponse
(package private) abstract String
Returns optional header data to pass along to AFE in the X-Google-RLS-Data header.(package private) abstract com.google.common.collect.ImmutableList
<String> targets()
Returns list of targets.
-
Constructor Details
-
RouteLookupResponse
RouteLookupResponse()
-
-
Method Details
-
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
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)
-