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