Package io.grpc.rls
Class CachingRlsLbClient.CacheEntry
java.lang.Object
io.grpc.rls.CachingRlsLbClient.CacheEntry
- Direct Known Subclasses:
CachingRlsLbClient.BackoffCacheEntry
,CachingRlsLbClient.DataCacheEntry
- Enclosing class:
CachingRlsLbClient
Common cache entry data for
CachingRlsLbClient.RlsAsyncLruCache
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
cleanup()
(package private) abstract int
(package private) abstract boolean
isExpired
(long now) protected boolean
isOldEnoughToBeEvicted
(long now)
-
Field Details
-
request
-
-
Constructor Details
-
CacheEntry
CacheEntry(RlsProtoData.RouteLookupRequest request)
-
-
Method Details
-
getSizeBytes
abstract int getSizeBytes() -
isExpired
abstract boolean isExpired(long now) -
cleanup
abstract void cleanup() -
isOldEnoughToBeEvicted
protected boolean isOldEnoughToBeEvicted(long now)
-