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