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 Classes Modifier and Type Class Description (package private) static classAutoValue_RlsProtoData_RouteLookupConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private longcacheSizeBytesprivate java.lang.StringdefaultTargetprivate com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder>grpcKeybuildersprivate java.lang.StringlookupServiceprivate longlookupServiceTimeoutInNanosprivate longmaxAgeInNanosprivate longstaleAgeInNanos
-
Constructor Summary
Constructors Modifier Constructor Description privateAutoValue_RlsProtoData_RouteLookupConfig(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders, java.lang.String lookupService, long lookupServiceTimeoutInNanos, long maxAgeInNanos, long staleAgeInNanos, long cacheSizeBytes, java.lang.String defaultTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) longcacheSizeBytes()Returns a rough indicator of amount of memory to use for the client cache.(package private) java.lang.StringdefaultTarget()Returns the default target to use if needed.booleanequals(java.lang.Object o)(package private) com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder>grpcKeybuilders()Returns unordered specifications for constructing keys for gRPC requests.inthashCode()(package private) java.lang.StringlookupService()Returns the name of the lookup service as a gRPC URI.(package private) longlookupServiceTimeoutInNanos()Returns the timeout value for lookup service requests.(package private) longmaxAgeInNanos()Returns the maximum age the result will be cached.(package private) longstaleAgeInNanos()Returns the time when an entry will be in a staled status.java.lang.StringtoString()-
Methods inherited from class io.grpc.rls.RlsProtoData.RouteLookupConfig
builder
-
-
-
-
Field Detail
-
grpcKeybuilders
private final com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders
-
lookupService
private final java.lang.String lookupService
-
lookupServiceTimeoutInNanos
private final long lookupServiceTimeoutInNanos
-
maxAgeInNanos
private final long maxAgeInNanos
-
staleAgeInNanos
private final long staleAgeInNanos
-
cacheSizeBytes
private final long cacheSizeBytes
-
defaultTarget
private final java.lang.String defaultTarget
-
-
Constructor Detail
-
AutoValue_RlsProtoData_RouteLookupConfig
private AutoValue_RlsProtoData_RouteLookupConfig(com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders, java.lang.String lookupService, long lookupServiceTimeoutInNanos, long maxAgeInNanos, long staleAgeInNanos, long cacheSizeBytes, @Nullable java.lang.String defaultTarget)
-
-
Method Detail
-
grpcKeybuilders
com.google.common.collect.ImmutableList<RlsProtoData.GrpcKeyBuilder> grpcKeybuilders()
Description copied from class:RlsProtoData.RouteLookupConfigReturns 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:
grpcKeybuildersin classRlsProtoData.RouteLookupConfig
-
lookupService
java.lang.String lookupService()
Description copied from class:RlsProtoData.RouteLookupConfigReturns 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:
lookupServicein classRlsProtoData.RouteLookupConfig
-
lookupServiceTimeoutInNanos
long lookupServiceTimeoutInNanos()
Description copied from class:RlsProtoData.RouteLookupConfigReturns the timeout value for lookup service requests.- Specified by:
lookupServiceTimeoutInNanosin classRlsProtoData.RouteLookupConfig
-
maxAgeInNanos
long maxAgeInNanos()
Description copied from class:RlsProtoData.RouteLookupConfigReturns the maximum age the result will be cached.- Specified by:
maxAgeInNanosin classRlsProtoData.RouteLookupConfig
-
staleAgeInNanos
long staleAgeInNanos()
Description copied from class:RlsProtoData.RouteLookupConfigReturns 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:
staleAgeInNanosin classRlsProtoData.RouteLookupConfig
-
cacheSizeBytes
long cacheSizeBytes()
Description copied from class:RlsProtoData.RouteLookupConfigReturns 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:
cacheSizeBytesin classRlsProtoData.RouteLookupConfig
-
defaultTarget
@Nullable java.lang.String defaultTarget()
Description copied from class:RlsProtoData.RouteLookupConfigReturns 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:
defaultTargetin classRlsProtoData.RouteLookupConfig
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-