Class CacheEntry<T>

    • Constructor Detail

      • CacheEntry

        public CacheEntry​(CacheEntry<? extends T> other)
        Copy constructor
        Parameters:
        other - The other cache entry
      • CacheEntry

        public CacheEntry​(T entryValue,
                          long futureTimeAmount,
                          TimeUnit timeUnit)
        Construct a new cache entry that expires a specific amount of time in the future
        Parameters:
        entryValue - The entry value
        futureTimeAmount - The amount of time in the future (from right now) to expire it
        timeUnit - The units in which the amount of time is specified
      • CacheEntry

        public CacheEntry​(T entryValue,
                          Date entryExpiration)
        Construct a new cache entry that expires on a specific date
        Parameters:
        entryValue - The value of this cache entry
        entryExpiration - The expiration date of this cache entry
      • CacheEntry

        public CacheEntry​(T entryValue,
                          long entryExpirationTimestampMillis)
        Construct a new cache entry that expires at a specific Unix timestamp (in milliseconds)
        Parameters:
        entryValue - The value of this cache entry
        entryExpirationTimestampMillis - The expiration date of this cache entry