org.apache.commons.collections4.map
Interface PassiveExpiringMap.ExpirationPolicy<K,V>
- Type Parameters:
K - the key object type.V - the value object type
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- PassiveExpiringMap.ConstantTimeToLiveExpirationPolicy
- Enclosing class:
- PassiveExpiringMap<K,V>
public static interface PassiveExpiringMap.ExpirationPolicy<K,V>
- extends Serializable
A policy to determine the expiration time for key-value entries.
- Since:
- 4.0
- Version:
- $Id: PassiveExpiringMap.java 1481598 2013-05-12 16:28:28Z tn $
|
Method Summary |
long |
expirationTime(K key,
V value)
Determine the expiration time for the given key-value entry. |
expirationTime
long expirationTime(K key,
V value)
- Determine the expiration time for the given key-value entry.
- Parameters:
key - the key for the entry.value - the value for the entry.
- Returns:
- the expiration time value measured in milliseconds. A
negative return value indicates the entry never expires.
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.