Interface DataStore
- All Known Implementing Classes:
PersistentDataStore
,TransientDataStore
public interface DataStore
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
forcePut
(Hash key, DatabaseEntry data) getKeys()
boolean
boolean
boolean
put
(Hash key, DatabaseEntry data) boolean
put
(Hash key, DatabaseEntry data, boolean persist) void
rescan()
int
size()
void
stop()
-
Method Details
-
isInitialized
boolean isInitialized() -
isKnown
-
get
-
get
-
put
-
put
-
forcePut
-
remove
-
remove
-
getKeys
-
getEntries
Collection<DatabaseEntry> getEntries()- Since:
- 0.8.3
-
getMapEntries
Set<Map.Entry<Hash,DatabaseEntry>> getMapEntries()- Since:
- 0.8.3
-
stop
void stop() -
rescan
void rescan() -
countLeaseSets
int countLeaseSets() -
size
int size()- Returns:
- total size (RI and LS)
- Since:
- 0.8.8
-