Interface ValueWithExpiryTime


  • public interface ValueWithExpiryTime
    Interface to add to a value object if it is possible to derive the expiry time from the value. If no explicit expiry calculator is set and this interface is detected on the value, the expiry requested from the value by the cache.

    Important caveat: This interface must be present on the configured cache value type to enable the functionality.

    Author:
    Jens Wilke
    • Method Detail

      • getCacheExpiryTime

        long getCacheExpiryTime()
        Point in time in milliseconds when the value should expire.
        Returns:
        time of expiry in millis since epoch. See ExpiryTimeValues for the meaning of special values.
        See Also:
        ExpiryPolicy, ExpiryTimeValues