|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.store.memory.MemoryStore
public class MemoryStore
A simple memory store implementation based on a simple map. This store is neither clusterable, nor persistent, nor transactional.
| Field Summary |
|---|
| Fields inherited from interface org.apache.servicemix.store.Store |
|---|
CLUSTERED, PERSISTENT, TRANSACTIONAL |
| Constructor Summary | |
|---|---|
MemoryStore(IdGenerator idGenerator)
|
|
| Method Summary | |
|---|---|
boolean |
hasFeature(String name)
Returns true if the store implementation supports the given feature. |
Object |
load(String id)
Loads an object that has been previously stored under the specified key. |
String |
store(Object data)
Put an object into the store and return the unique id that may be used at a later time to retrieve the object. |
void |
store(String id,
Object data)
Put an object in the store under the given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryStore(IdGenerator idGenerator)
| Method Detail |
|---|
public boolean hasFeature(String name)
Store
hasFeature in interface Storename - the feature to check
true if the feature is supported
public void store(String id,
Object data)
throws IOException
Store
store in interface Storeid - the id of the object to storedata - the object to store
IOException - if an error occurs
public String store(Object data)
throws IOException
Store
store in interface Storedata - the object to store
IOException - if an error occurs
public Object load(String id)
throws IOException
Store
load in interface Storeid - the id of the object
null> if the object could not be found
IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||