public class CachedElement<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
creationTs |
private T |
element |
Constructor and Description |
---|
CachedElement(T element) |
Modifier and Type | Method and Description |
---|---|
long |
getCreationTs() |
T |
getElement() |
boolean |
isExpired(long ttl) |