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

abstract static class CachingRlsLbClient.CacheEntry extends Object
Common cache entry data for CachingRlsLbClient.RlsAsyncLruCache.
  • Field Details

  • Constructor Details

  • Method Details

    • getSizeBytes

      abstract int getSizeBytes()
    • isExpired

      abstract boolean isExpired(long now)
    • cleanup

      abstract void cleanup()
    • isOldEnoughToBeEvicted

      protected boolean isOldEnoughToBeEvicted(long now)