Package io.grpc.rls
Class AutoValue_RlsProtoData_RouteLookupConfig
java.lang.Object
io.grpc.rls.RlsProtoData.RouteLookupConfig
io.grpc.rls.AutoValue_RlsProtoData_RouteLookupConfig
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RlsProtoData_RouteLookupConfig
extends RlsProtoData.RouteLookupConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final String
private final com.google.common.collect.ImmutableList
<RlsProtoData.GrpcKeyBuilder> private final String
private final long
private final long
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AutoValue_RlsProtoData_RouteLookupConfig
(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders, String lookupService, long lookupServiceTimeoutInNanos, long maxAgeInNanos, long staleAgeInNanos, long cacheSizeBytes, String defaultTarget) -
Method Summary
Modifier and TypeMethodDescription(package private) long
Returns a rough indicator of amount of memory to use for the client cache.(package private) String
Returns the default target to use if needed.boolean
(package private) com.google.common.collect.ImmutableList
<RlsProtoData.GrpcKeyBuilder> Returns unordered specifications for constructing keys for gRPC requests.int
hashCode()
(package private) String
Returns the name of the lookup service as a gRPC URI.(package private) long
Returns the timeout value for lookup service requests.(package private) long
Returns the maximum age the result will be cached.(package private) long
Returns the time when an entry will be in a staled status.toString()
Methods inherited from class io.grpc.rls.RlsProtoData.RouteLookupConfig
builder
-
Field Details
-
grpcKeybuilders
-
lookupService
-
lookupServiceTimeoutInNanos
private final long lookupServiceTimeoutInNanos -
maxAgeInNanos
private final long maxAgeInNanos -
staleAgeInNanos
private final long staleAgeInNanos -
cacheSizeBytes
private final long cacheSizeBytes -
defaultTarget
-
-
Constructor Details
-
AutoValue_RlsProtoData_RouteLookupConfig
private AutoValue_RlsProtoData_RouteLookupConfig(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders, String lookupService, long lookupServiceTimeoutInNanos, long maxAgeInNanos, long staleAgeInNanos, long cacheSizeBytes, @Nullable String defaultTarget)
-
-
Method Details
-
grpcKeybuilders
com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders()Description copied from class:RlsProtoData.RouteLookupConfig
Returns unordered specifications for constructing keys for gRPC requests. All GrpcKeyBuilders on this list must have unique "name" fields so that the client is free to prebuild a hash map keyed by name. If no GrpcKeyBuilder matches, an empty key_map will be sent to the lookup service; it should likely reply with a global default route and raise an alert.- Specified by:
grpcKeybuilders
in classRlsProtoData.RouteLookupConfig
-
lookupService
String lookupService()Description copied from class:RlsProtoData.RouteLookupConfig
Returns the name of the lookup service as a gRPC URI. Typically, this will be a subdomain of the target, such as "lookup.datastore.googleapis.com".- Specified by:
lookupService
in classRlsProtoData.RouteLookupConfig
-
lookupServiceTimeoutInNanos
long lookupServiceTimeoutInNanos()Description copied from class:RlsProtoData.RouteLookupConfig
Returns the timeout value for lookup service requests.- Specified by:
lookupServiceTimeoutInNanos
in classRlsProtoData.RouteLookupConfig
-
maxAgeInNanos
long maxAgeInNanos()Description copied from class:RlsProtoData.RouteLookupConfig
Returns the maximum age the result will be cached.- Specified by:
maxAgeInNanos
in classRlsProtoData.RouteLookupConfig
-
staleAgeInNanos
long staleAgeInNanos()Description copied from class:RlsProtoData.RouteLookupConfig
Returns the time when an entry will be in a staled status. When cache is accessed whgen the entry is in staled status, it will- Specified by:
staleAgeInNanos
in classRlsProtoData.RouteLookupConfig
-
cacheSizeBytes
long cacheSizeBytes()Description copied from class:RlsProtoData.RouteLookupConfig
Returns a rough indicator of amount of memory to use for the client cache. Some of the data structure overhead is not accounted for, so actual memory consumed will be somewhat greater than this value. If this field is omitted or set to zero, a client default will be used. The value may be capped to a lower amount based on client configuration.- Specified by:
cacheSizeBytes
in classRlsProtoData.RouteLookupConfig
-
defaultTarget
Description copied from class:RlsProtoData.RouteLookupConfig
Returns the default target to use if needed. If nonempty (implies request processing strategy SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR is set), it will be used if RLS returns an error. Note that requests can be routed only to a subdomain of the original target, e.g. "us_east_1.cloudbigtable.googleapis.com".- Specified by:
defaultTarget
in classRlsProtoData.RouteLookupConfig
-
toString
-
equals
-
hashCode
public int hashCode()
-