|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CacheStorage
Interface for a cache usable by the daemon. Read and write operations need not be thread safe as the caller (ServerSessionHandler) establishes its own locks.
| Method Summary | |
|---|---|
long |
count()
|
void |
flushAll()
Flush all entries from the cache |
MCElement |
get(java.lang.String keystring)
Retrieve an element from the cache. |
java.util.Set<java.lang.String> |
keys()
|
long |
maxSize()
|
void |
put(java.lang.String keystring,
MCElement el)
Put an entry into the cache or replace an existing entry. |
void |
remove(java.lang.String keystring)
Remove an entry from the cache |
long |
size()
|
| Method Detail |
|---|
MCElement get(java.lang.String keystring)
keystring - the key identifying the entry
void put(java.lang.String keystring,
MCElement el)
keystring - the key identifying the entryel - the element to place in the cachevoid remove(java.lang.String keystring)
keystring - the key to lookupjava.util.Set<java.lang.String> keys()
void flushAll()
long size()
long maxSize()
long count()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||