net.i2p.router.networkdb.kademlia
class TransientDataStore extends Object implements DataStore
Modifier and Type | Field and Description |
---|---|
protected RouterContext |
_context |
Constructor and Description |
---|
TransientDataStore(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
int |
countLeaseSets() |
DatabaseEntry |
get(Hash key) |
DatabaseEntry |
get(Hash key,
boolean persist)
for PersistentDataStore only - don't use here @throws IAE always
|
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)
for PersistentDataStore only - don't use here @throws IAE always
|
DatabaseEntry |
remove(Hash key) |
DatabaseEntry |
remove(Hash key,
boolean persist)
for PersistentDataStore only - don't use here
|
void |
rescan() |
void |
restart() |
void |
stop() |
String |
toString() |
protected RouterContext _context
public TransientDataStore(RouterContext ctx)
public boolean isInitialized()
isInitialized
in interface DataStore
public Collection<DatabaseEntry> getEntries()
getEntries
in interface DataStore
public Set<Map.Entry<Hash,DatabaseEntry>> getMapEntries()
getMapEntries
in interface DataStore
public DatabaseEntry get(Hash key, boolean persist)
public DatabaseEntry get(Hash key)
public int countLeaseSets()
countLeaseSets
in interface DataStore
public boolean put(Hash key, DatabaseEntry data, boolean persist)
public boolean put(Hash key, DatabaseEntry data)
public DatabaseEntry remove(Hash key, boolean persist)
public DatabaseEntry remove(Hash key)