org.jgroups.util
public class SuppressCache<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SuppressCache.Value |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<T,SuppressCache.Value> |
map |
Constructor and Description |
---|
SuppressCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
SuppressCache.Value |
putIfAbsent(T key,
long expiry_time)
Adds a new key to the hashmap, or updates the Value associated with the existing key if present.
|
void |
removeAll(Collection<T> list) |
void |
removeExpired(long expiry_time) |
void |
retainAll(Collection<T> list) |
int |
size()
Returns the total count of all values
|
String |
toString() |
protected final ConcurrentMap<T,SuppressCache.Value> map
public SuppressCache.Value putIfAbsent(T key, long expiry_time)
key
- The keyexpiry_time
- Expiry time (in ms)public void clear()
public void retainAll(Collection<T> list)
public void removeAll(Collection<T> list)
public void removeExpired(long expiry_time)
public int size()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.