|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheStorage<K,V extends SizedItem>
The interface for cache storage. Essentially a concurrent map but with methods for investigating the heap state of the storage unit and with additional support for explicit resource-cleanup (close()).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Method Summary | |
|---|---|
int |
capacity()
|
void |
close()
Close the storage unit, deallocating any resources it might be currently holding. |
long |
getMemoryCapacity()
|
long |
getMemoryUsed()
|
| Methods inherited from interface java.util.concurrent.ConcurrentMap |
|---|
putIfAbsent, remove, replace, replace |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
long getMemoryCapacity()
long getMemoryUsed()
int capacity()
void close()
throws java.io.IOException
java.io.IOException - thrown if IO faults occur anywhere during close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||