Interface ExpiringCacheable

All Superinterfaces:
Cacheable, Serializable
All Known Implementing Classes:
DNSTimeoutEntry, WeatherMapData

public interface ExpiringCacheable extends Cacheable
An interface to mark a cacheable object that sets its own expiration date.
Since:
1.0
Version:
7.0
Author:
Luke
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the date this object should be considered expired.

    Methods inherited from interface Cacheable

    cacheKey
    Modifier and Type
    Method
    Description
    Returns the cache key for this object.
  • Method Details

    • getExpiryDate

      Instant getExpiryDate()
      Returns the date this object should be considered expired.
      Returns:
      the expiry date/time