Class Cache.Info

java.lang.Object
overit.geocall.cache.Cache.Info
Enclosing class:
Cache

public static class Cache.Info extends Object
Utility class that holds the information about a specific cache entry.
  • Field Details

    • length

      protected Integer length
    • type

      protected String type
    • storeTtl

      protected Long storeTtl
    • readTtl

      protected Long readTtl
    • view

      protected String view
  • Constructor Details

    • Info

      public Info()
  • Method Details

    • getLength

      public Integer getLength()
      Returns:
      the entry's size expressed in byte
    • getType

      public String getType()
      Returns:
      the type of the data contained in the current entry
    • getStoreTtl

      public Long getStoreTtl()
      Returns:
      the remaining milliseconds before the entry will be evicted from the cache or -1 if the entry will never be removed.
    • getReadTtl

      public Long getReadTtl()
      Returns:
      the remaining milliseconds before the entry will be evicted from the cache or -1 if the entry will never be removed. This counter will be reset every time the cache's entry has been read.
    • getView

      public String getView()
      Returns:
      the name of the view