Interface DataStore
-
- All Known Subinterfaces:
LinkedDataStore
- All Known Implementing Classes:
AbstractBlockBasedDataStore,AbstractDataStore,BlockBasedDataStore,InMemoryLinkedDataStore,JournalingBlockBasedDataStore
public interface DataStoreDataStore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the store releasing associated system resourcesvoidcommitChanges()Ensure everything's persisted (synchronous)voidcommitChanges(SynchronizationBarrier barrier)Ensure everything's persisted (asynchronous)intgetAbsoluteStoreUsage()Get the absolute store usage amount (%) (Ratio of used space over maximum allocatable space)intgetStoreUsage()Get the store usage amount (%) (Ratio of used space over currently allocated space)intsize()Get the number of entries in the store
-
-
-
Method Detail
-
commitChanges
void commitChanges(SynchronizationBarrier barrier) throws DataStoreException
Ensure everything's persisted (asynchronous)- Throws:
DataStoreException
-
commitChanges
void commitChanges() throws DataStoreExceptionEnsure everything's persisted (synchronous)- Throws:
DataStoreException
-
close
void close()
Close the store releasing associated system resources
-
size
int size()
Get the number of entries in the store
-
getStoreUsage
int getStoreUsage()
Get the store usage amount (%) (Ratio of used space over currently allocated space)
-
getAbsoluteStoreUsage
int getAbsoluteStoreUsage()
Get the absolute store usage amount (%) (Ratio of used space over maximum allocatable space)
-
-