public class InactiveExpiringValue<V> extends SimpleExpiringValue<V>
get()
)Constructor and Description |
---|
InactiveExpiringValue(long valueTimeout) |
InactiveExpiringValue(V value,
long valueTimeout) |
Modifier and Type | Method and Description |
---|---|
V |
get()
Gets the current, valid value,
null otherwise. |
getExpireTime, getTimeout, isValid, set, updateExpireTime
public InactiveExpiringValue(long valueTimeout)
public InactiveExpiringValue(V value, long valueTimeout)
public V get()
null
otherwise. If the current value is not valid, it will be cleared by
this call before returning.
Updates the expiration time via SimpleExpiringValue.updateExpireTime()
if the current value is non-null
.
get
in class ExpiringValue<V>