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 java.lang.Object
A response from route lookup service.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
-
-
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)
-
-