|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.store.base.BaseStore
org.apache.servicemix.store.krati.KratiStore
public class KratiStore
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.store.base.BaseStore |
|---|
storeListeners |
| Fields inherited from interface org.apache.servicemix.store.Store |
|---|
CLUSTERED, PERSISTENT, TRANSACTIONAL |
| Constructor Summary | |
|---|---|
KratiStore(krati.store.DataStore<byte[],byte[]> store)
Constructor |
|
KratiStore(krati.store.DataStore<byte[],byte[]> store,
long timeout)
Constructor |
|
KratiStore(krati.store.DataStore<byte[],byte[]> store,
long timeout,
IdGenerator idGenerator)
Constructor |
|
| Method Summary | |
|---|---|
void |
delete(java.lang.String id)
Deletes an object that has been previously stored under the specified key. |
krati.store.DataStore<byte[],byte[]> |
getDatas()
|
IdGenerator |
getIdGenerator()
|
boolean |
hasFeature(java.lang.String feature)
Returns true if feature is provided by the store (clustered), false else. |
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 |
setDatas(krati.store.DataStore<byte[],byte[]> datas)
|
void |
setIdGenerator(IdGenerator idGenerator)
|
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 key,
java.lang.Object value)
Put an object in the store under the given id. |
| Methods inherited from class org.apache.servicemix.store.base.BaseStore |
|---|
addListener, fireAddedEvent, fireEvictedEvent, fireRemovedEvent, getStoreListeners, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KratiStore(krati.store.DataStore<byte[],byte[]> store)
store -
public KratiStore(krati.store.DataStore<byte[],byte[]> store,
long timeout)
store - timeout -
public KratiStore(krati.store.DataStore<byte[],byte[]> store,
long timeout,
IdGenerator idGenerator)
store - timeout - | Method Detail |
|---|
public boolean hasFeature(java.lang.String feature)
Returns true if feature is provided by the store (clustered), false else.
feature - the feature.
public void store(java.lang.String key,
java.lang.Object value)
Put an object in the store under the given id. This method must be used with caution and the behavior is unspecified if an object already exist for the same id.
id - the id of the object to storedata - the object to store
java.io.IOException - if an error occurs
public java.lang.String store(java.lang.Object data)
throws java.io.IOException
Put an object into the store and return the unique id that may be used at a later time to retrieve the object.
data - the object to store
java.io.IOException - if an error occurs
public java.lang.Object load(java.lang.String id)
throws java.io.IOException
Loads an object that has been previously stored under the specified key. The object is removed from the store.
id - the id of the object
null> if the object could not be found
java.io.IOException - if an error occurs
public java.lang.Object peek(java.lang.String id)
throws java.io.IOException
Loads an object that has been previously stored under the specified key. The object is not removed from the store.
id - the id of the object
null if the object could not be found
java.io.IOException - if an error occurs
public void delete(java.lang.String id)
throws java.lang.Exception
Deletes an object that has been previously stored under the specified key.
id - the id of the object
java.lang.Exception - if an error occurspublic krati.store.DataStore<byte[],byte[]> getDatas()
public void setDatas(krati.store.DataStore<byte[],byte[]> datas)
public IdGenerator getIdGenerator()
public void setIdGenerator(IdGenerator idGenerator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||