public class TimeoutMemoryStore extends MemoryStore
MemoryStore which removes entries from the store after the specified timeout
to free memory.storeListenersCLUSTERED, PERSISTENT, TRANSACTIONAL| Modifier | Constructor and Description |
|---|---|
protected |
TimeoutMemoryStore(IdGenerator idGenerator,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
load(java.lang.String id)
Loads an object that has been previously stored under the specified key.
|
void |
store(java.lang.String id,
java.lang.Object data)
Put an object in the store under the given id.
|
hasFeature, peek, storeaddListener, fireAddedEvent, fireEvictedEvent, fireRemovedEvent, getStoreListeners, removeListenerprotected TimeoutMemoryStore(IdGenerator idGenerator, long timeout)
public void store(java.lang.String id,
java.lang.Object data)
throws java.io.IOException
store in interface Storestore in class MemoryStoreid - the id of the object to storedata - the object to storejava.io.IOException - if an error occurspublic java.lang.Object load(java.lang.String id)
throws java.io.IOException
load in interface Storeload in class MemoryStoreid - the id of the objectnull> if the object could not be foundjava.io.IOException - if an error occursCopyright © 2005-2014 FuseSource. All Rights Reserved.