Interface TimeToLiveAccessor
public interface TimeToLiveAccessor
TimeToLiveAccessor extracts the objects time to live used for EXPIRE.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptiongetTimeToLive(Object source) booleanisExpiringEntity(Class<?> type)
-
Method Details
-
getTimeToLive
- Parameters:
source- must not be null.- Returns:
- null if not configured.
-
isExpiringEntity
- Parameters:
type- must not be null.- Returns:
- return true if the entity could potentially expire.
- Since:
- 2.3
-