Class SerializationCache.EntryAttributes

  • Enclosing class:
    SerializationCache

    protected class SerializationCache.EntryAttributes
    extends Base
    A class that holds on to the expiry time and touch order for an entry.
    • Constructor Detail

      • EntryAttributes

        public EntryAttributes​(long ldtExpires,
                               long nTouch,
                               int cUnits)
        Construct an attribute holder for an entry.
        Parameters:
        ldtExpires - the date/time at which the entry expires, or zero
        nTouch - the touch counter assigned to the entry
        cUnits - the number of storage units used by the entry
    • Method Detail

      • getExpiryTime

        public long getExpiryTime()
        Determine the date/time at which the entry expires.
        Returns:
        the system time at which the corresponding entry expires, or zero if the entry never expires
      • getTouchCount

        public long getTouchCount()
        Determine the absolute order of the entry within in the LRU list.
        Returns:
        the touch counter assigned to the corresponding entry
      • getUnits

        public int getUnits()
        Determine the number of units of storage used by the entry.
        Returns:
        the storage units used by the entry