class TransientDataStore extends Object implements DataStore
| Modifier and Type | Field and Description |
|---|---|
protected RouterContext |
_context |
protected net.i2p.util.Log |
_log |
| Constructor and Description |
|---|
TransientDataStore(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
int |
countLeaseSets() |
net.i2p.data.DatabaseEntry |
get(net.i2p.data.Hash key) |
net.i2p.data.DatabaseEntry |
get(net.i2p.data.Hash key,
boolean persist)
for PersistentDataStore only - don't use here
|
Collection<net.i2p.data.DatabaseEntry> |
getEntries() |
Set<net.i2p.data.Hash> |
getKeys() |
Set<Map.Entry<net.i2p.data.Hash,net.i2p.data.DatabaseEntry>> |
getMapEntries() |
boolean |
isInitialized() |
boolean |
isKnown(net.i2p.data.Hash key) |
boolean |
put(net.i2p.data.Hash key,
net.i2p.data.DatabaseEntry data) |
boolean |
put(net.i2p.data.Hash key,
net.i2p.data.DatabaseEntry data,
boolean persist)
for PersistentDataStore only - don't use here
|
net.i2p.data.DatabaseEntry |
remove(net.i2p.data.Hash key) |
net.i2p.data.DatabaseEntry |
remove(net.i2p.data.Hash key,
boolean persist)
for PersistentDataStore only - don't use here
|
void |
rescan() |
void |
restart() |
int |
size() |
void |
stop() |
String |
toString() |
protected final net.i2p.util.Log _log
protected final RouterContext _context
public TransientDataStore(RouterContext ctx)
public boolean isInitialized()
isInitialized in interface DataStorepublic int size()
public Set<net.i2p.data.Hash> getKeys()
public Collection<net.i2p.data.DatabaseEntry> getEntries()
getEntries in interface DataStorepublic Set<Map.Entry<net.i2p.data.Hash,net.i2p.data.DatabaseEntry>> getMapEntries()
getMapEntries in interface DataStorepublic net.i2p.data.DatabaseEntry get(net.i2p.data.Hash key,
boolean persist)
get in interface DataStoreUnsupportedOperationException - alwayspublic net.i2p.data.DatabaseEntry get(net.i2p.data.Hash key)
public int countLeaseSets()
countLeaseSets in interface DataStorepublic boolean put(net.i2p.data.Hash key,
net.i2p.data.DatabaseEntry data,
boolean persist)
put in interface DataStoreUnsupportedOperationException - alwayspublic boolean put(net.i2p.data.Hash key,
net.i2p.data.DatabaseEntry data)
public net.i2p.data.DatabaseEntry remove(net.i2p.data.Hash key,
boolean persist)
remove in interface DataStoreUnsupportedOperationException - always