Interface Expiration
-
- All Known Subinterfaces:
ExpirationConfiguration<T>,ExpirationMetaData
public interface ExpirationDescribes the expiration criteria for an object.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DurationgetTimeout()The duration of time, after which an idle object should expire.default booleanisImmortal()Indicates whether the associated timeout represents and immortal object, i.e.
-
-
-
Method Detail
-
getTimeout
Duration getTimeout()
The duration of time, after which an idle object should expire.- Returns:
- the object timeout
-
isImmortal
default boolean isImmortal()
Indicates whether the associated timeout represents and immortal object, i.e. does not expire- Returns:
- true, if this object is immortal, false otherwise
-
-