Package | Description |
---|---|
org.apache.commons.collections4.map |
Modifier and Type | Class and Description |
---|---|
static class |
PassiveExpiringMap.ConstantTimeToLiveExpirationPolicy<K,V>
A
ExpirationPolicy
that returns a expiration time that is a
constant about of time in the future from the current time. |
Modifier and Type | Field and Description |
---|---|
private PassiveExpiringMap.ExpirationPolicy<K,V> |
PassiveExpiringMap.expiringPolicy
the policy used to determine time-to-live values for map entries.
|
Constructor and Description |
---|
PassiveExpiringMap(PassiveExpiringMap.ExpirationPolicy<K,V> expiringPolicy)
Construct a map decorator using the given expiration policy to determine
expiration times.
|
PassiveExpiringMap(PassiveExpiringMap.ExpirationPolicy<K,V> expiringPolicy,
java.util.Map<K,V> map)
Construct a map decorator that decorates the given map and uses the given
expiration policy to determine expiration times.
|