Package org.forgerock.bloomfilter
Interface ExpiryStrategy<T>
-
public interface ExpiryStrategy<T>
Strategy pattern for determining when elements added to aConcurrentRollingBloomFilter
should expire.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
expiryTime(T it)
Determines the expiration time for the given element.
-
-
-
Method Detail
-
expiryTime
long expiryTime(T it)
Determines the expiration time for the given element.- Parameters:
it
- the element to determine the expiration time for.- Returns:
- the expiration time, as milliseconds from the UTC epoch.
-
-