public interface Store
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLUSTERED |
static java.lang.String |
PERSISTENT |
static java.lang.String |
TRANSACTIONAL |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(StoreListener listener)
Registers a
StoreListener. |
java.util.Set<StoreListener> |
getStoreListeners()
Lists all
StoreListeners. |
boolean |
hasFeature(java.lang.String name)
Returns true if the store implementation supports the given feature.
|
java.lang.Object |
load(java.lang.String id)
Loads an object that has been previously stored under the specified key.
|
java.lang.Object |
peek(java.lang.String id)
Loads an object that has been previously stored under the specified key.
|
void |
removeListener(StoreListener listener)
Unregisters a
StoreListener. |
java.lang.String |
store(java.lang.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(java.lang.String id,
java.lang.Object data)
Put an object in the store under the given id.
|
static final java.lang.String PERSISTENT
static final java.lang.String CLUSTERED
static final java.lang.String TRANSACTIONAL
boolean hasFeature(java.lang.String name)
name - the feature to checktrue if the feature is supportedvoid store(java.lang.String id,
java.lang.Object data)
throws java.io.IOException
id - the id of the object to storedata - the object to storejava.io.IOException - if an error occursjava.lang.String store(java.lang.Object data)
throws java.io.IOException
data - the object to storejava.io.IOException - if an error occursjava.lang.Object load(java.lang.String id)
throws java.io.IOException
id - the id of the objectnull> if the object could not be foundjava.io.IOException - if an error occursjava.lang.Object peek(java.lang.String id)
throws java.io.IOException
id - the id of the objectnull if the object could not be foundjava.io.IOException - if an error occursvoid addListener(StoreListener listener)
StoreListener.listener - void removeListener(StoreListener listener)
StoreListener.listener - java.util.Set<StoreListener> getStoreListeners()
StoreListeners.Copyright © 2005-2014 FuseSource. All Rights Reserved.