Class TransientDataStore
java.lang.Object
net.i2p.router.networkdb.kademlia.TransientDataStore
- All Implemented Interfaces:
DataStore
- Direct Known Subclasses:
PersistentDataStore
Stores in-memory only. See extension.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
for PersistentDataStore only - don't use heregetKeys()
boolean
boolean
boolean
put
(Hash key, DatabaseEntry data) boolean
put
(Hash key, DatabaseEntry data, boolean persist) for PersistentDataStore only - don't use herefor PersistentDataStore only - don't use herevoid
rescan()
void
restart()
int
size()
void
stop()
toString()
-
Field Details
-
_log
-
_context
-
-
Constructor Details
-
TransientDataStore
-
-
Method Details
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceDataStore
-
stop
public void stop() -
restart
public void restart() -
rescan
public void rescan() -
size
public int size() -
getKeys
-
getEntries
- Specified by:
getEntries
in interfaceDataStore
- Returns:
- Unmodifiable view, not a copy
- Since:
- 0.8.3
-
getMapEntries
- Specified by:
getMapEntries
in interfaceDataStore
- Returns:
- Unmodifiable view, not a copy
- Since:
- 0.8.3
-
get
for PersistentDataStore only - don't use here- Specified by:
get
in interfaceDataStore
- Throws:
UnsupportedOperationException
- always
-
get
-
isKnown
-
countLeaseSets
public int countLeaseSets()- Specified by:
countLeaseSets
in interfaceDataStore
-
put
for PersistentDataStore only - don't use here- Specified by:
put
in interfaceDataStore
- Throws:
UnsupportedOperationException
- always
-
put
-
toString
-
remove
for PersistentDataStore only - don't use here- Specified by:
remove
in interfaceDataStore
- Throws:
UnsupportedOperationException
- always
-
remove
-