|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- The type of the key being storedV
- The type of the value being storedT
- The type of the transformspublic interface IStorageEngine<K,V>
A base storage class which is actually responsible for data persistence. This interface implies all the usual responsibilities of a Store implementation, and in addition
Method Summary | |
---|---|
void |
cleanupTask()
Perform any periodic cleanup tasks that might need to be performed. |
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> |
entries()
Get an iterator over pairs of entries in the store. |
boolean |
isPersistent()
Returns true if the underlying data store is persistent |
IClosableIterator<K> |
keys()
Get an iterator over keys in the store. |
void |
setTombstoneInterval(int interval)
Set the interval after which tombstones will be cleaned up. |
void |
truncate()
Truncate all entries in the store. |
boolean |
writeSyncValue(K key,
java.lang.Iterable<Versioned<V>> values)
Write the given versioned values into the given key. |
Methods inherited from interface org.sdnplatform.sync.internal.store.IStore |
---|
close, get, getName, getVersions, put |
Method Detail |
---|
IClosableIterator<java.util.Map.Entry<K,java.util.List<Versioned<V>>>> entries()
entries
in interface IStore<K,V>
IClosableIterator<K> keys()
void truncate() throws SyncException
SyncException
boolean writeSyncValue(K key, java.lang.Iterable<Versioned<V>> values)
key
- the keyvalues
- the list of versions for that key
SyncException
void cleanupTask() throws SyncException
SyncException
boolean isPersistent()
void setTombstoneInterval(int interval)
interval
- the interval in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |