Interface TimeToLiveAccessor


public interface TimeToLiveAccessor
TimeToLiveAccessor extracts the objects time to live used for EXPIRE.
Since:
1.7
Author:
Christoph Strobl
  • Method Details

    • getTimeToLive

      @Nullable Long getTimeToLive(Object source)
      Parameters:
      source - must not be null.
      Returns:
      null if not configured.
    • isExpiringEntity

      boolean isExpiringEntity(Class<?> type)
      Parameters:
      type - must not be null.
      Returns:
      return true if the entity could potentially expire.
      Since:
      2.3