Package com.boomi.connector.util
Class InactiveExpiringValue<V>
- java.lang.Object
-
- com.boomi.connector.util.ExpiringValue<V>
-
- com.boomi.connector.util.SimpleExpiringValue<V>
-
- com.boomi.connector.util.InactiveExpiringValue<V>
-
public class InactiveExpiringValue<V> extends SimpleExpiringValue<V>
ExpiringValue implementation which will expire the current value if it has not been "used" for a given amount of time (based on the last call toget()
)
-
-
Constructor Summary
Constructors Constructor Description InactiveExpiringValue(long valueTimeout)
InactiveExpiringValue(V value, long valueTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
Gets the current, valid value,null
otherwise.-
Methods inherited from class com.boomi.connector.util.SimpleExpiringValue
getExpireTime, getTimeout, isValid, set, updateExpireTime
-
-
-
-
Constructor Detail
-
InactiveExpiringValue
public InactiveExpiringValue(long valueTimeout)
-
InactiveExpiringValue
public InactiveExpiringValue(V value, long valueTimeout)
-
-
Method Detail
-
get
public V get()
Gets the current, valid value,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
.- Overrides:
get
in classExpiringValue<V>
-
-