T - the type of the cached valuepublic class CmsExpiringValue<T> extends java.lang.Object
If the time between the last write operation and a read operation is longer than the expiration time, null will be returned from the read operation.
| Constructor and Description |
|---|
CmsExpiringValue(long expirationTime)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Gets the cached value.
|
void |
set(T value)
Sets the cached value.
|
public CmsExpiringValue(long expirationTime)
expirationTime - the expiration time in milliseconds