public abstract class KeyValueStore extends Service
| Constructor and Description |
|---|
KeyValueStore() |
| Modifier and Type | Method and Description |
|---|---|
abstract <V> void |
add(String id,
V document)
This method adds a value, associated with the id.
|
abstract <V> V |
get(String id,
Class<V> type)
This method returns the value associated with the supplied
id.
|
abstract void |
remove(String id)
This method removes the value associated with the supplied.
|
abstract <V> void |
update(String id,
V document)
This method updates the value associated with the supplied
id.
|
public abstract <V> void add(String id, V document) throws Exception
V - The value typeid - The iddocument - The valueException - Failed to add documentpublic abstract void remove(String id) throws Exception
id - id of object to remove.Exception - when cannot delete.public abstract <V> void update(String id, V document)
V - The value typeid - The iddocument - The updated valueCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.