public class ConcurrentARH<K> extends java.util.AbstractSet<K> implements java.util.Set<K>, java.lang.Iterable<K>, ARH<K>
Modifier and Type | Field and Description |
---|---|
private static java.lang.Object |
_EXIST |
private ConcurrentARC<K,java.lang.Object> |
cache |
Constructor and Description |
---|
ConcurrentARH(int cacheSize,
int partitions) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K e)
add a value to the cache.
|
void |
clear()
clear the cache
|
boolean |
contains(java.lang.Object o)
check if a value in the cache exist
|
void |
delete(java.lang.Object o)
delete an entry from the cache
|
boolean |
isEmpty() |
java.util.Iterator<K> |
iterator()
iterator implements the Iterable interface
|
java.util.Set<K> |
set()
Return a Set view of the mappings contained in this map.
|
int |
size()
get the size of the ARH.
|
addAll, containsAll, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final java.lang.Object _EXIST
private final ConcurrentARC<K,java.lang.Object> cache
public int size()
ARH
public boolean contains(java.lang.Object o)
ARH
public void clear()
ARH
public java.util.Set<K> set()
ARH
public java.util.Iterator<K> iterator()
ARH
public boolean isEmpty()
public boolean add(K e)
ARH