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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanforcePut(Hash key, DatabaseEntry data) for PersistentDataStore only - don't use heregetKeys()booleanbooleanbooleanput(Hash key, DatabaseEntry data) booleanput(Hash key, DatabaseEntry data, boolean persist) for PersistentDataStore only - don't use herefor PersistentDataStore only - don't use herevoidrescan()intsize()voidstop()toString()
-
Field Details
-
_log
-
_context
-
-
Constructor Details
-
TransientDataStore
-
-
Method Details
-
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceDataStore
-
stop
public void stop() -
rescan
public void rescan() -
size
public int size() -
getKeys
-
getEntries
- Specified by:
getEntriesin interfaceDataStore- Returns:
- Unmodifiable view, not a copy
- Since:
- 0.8.3
-
getMapEntries
- Specified by:
getMapEntriesin interfaceDataStore- Returns:
- Unmodifiable view, not a copy
- Since:
- 0.8.3
-
get
for PersistentDataStore only - don't use here- Specified by:
getin interfaceDataStore- Throws:
UnsupportedOperationException- always
-
get
-
isKnown
-
countLeaseSets
public int countLeaseSets()- Specified by:
countLeaseSetsin interfaceDataStore
-
put
for PersistentDataStore only - don't use here- Specified by:
putin interfaceDataStore- Throws:
UnsupportedOperationException- always
-
put
-
forcePut
-
toString
-
remove
for PersistentDataStore only - don't use here- Specified by:
removein interfaceDataStore- Throws:
UnsupportedOperationException- always
-
remove
-