Method Summary |
|
final protected void | clear() Clears any data structures and places it back to its state when it was first created. |
final public boolean | containsKey(Object key) An unsynchronized check to see if a key is in the Store. |
public static MemoryStore | create(Ehcache cache, Store diskStore) A factory method to create a MemoryStore. |
final public synchronized void | dispose() Prepares for shutdown. |
protected void | doPut(Element element) Allow specialised actions over adding the element to the map. |
final protected void | evict(Element element) Evict the Element . |
final public synchronized void | flush() Flush to disk. |
final public synchronized Element | get(Object key) Gets an item from the cache. |
final public synchronized Object[] | getKeyArray() Gets an Array of the keys for all elements in the memory cache. |
final public synchronized Element | getQuiet(Object key) Gets an item from the cache, without updating Element statistics. |
final public int | getSize() Returns the current cache size. |
final public synchronized long | getSizeInBytes() Measures the size of the memory store by measuring the serialized size of all elements. |
final public Status | getStatus() Gets the status of the MemoryStore. |
final protected boolean | isFull() An algorithm to tell if the MemoryStore is at or beyond its carrying capacity. |
final protected void | notifyExpiry(Element element) Before eviction elements are checked. |
final public synchronized void | put(Element element) Puts an item in the cache. |
final public synchronized Element | remove(Object key) Removes an Element from the store. |
final public synchronized void | removeAll() Remove all of the elements from the store. |
final protected void | spoolAllToDisk() Spools all elements to disk, in preparation for shutdown. |
final protected void | spoolToDisk(Element element) Puts the element in the DiskStore. |