public class HashMapDb extends Object implements ILispDAO, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HashMapDb() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanOld() |
void |
close() |
Map<String,Object> |
get(Object key)
Get the entries from the DAO
|
void |
getAll(IRowVisitor visitor)
Enumerate all the entries from the DAO
|
int |
getRecordTimeOut() |
Object |
getSpecific(Object key,
String valueKey)
Get a specific value from the DAO.
|
TimeUnit |
getTimeUnit() |
void |
put(Object key,
MappingEntry<?>... values)
Put a entry into the DAO.
|
ILispDAO |
putNestedTable(Object key,
String valueKey)
Inserts a new, nested table for given key and subkey.
|
ILispDAO |
putTable(String key)
Insert a new table for given key.
|
void |
remove(Object key)
Remove an entry from the DAO
|
void |
removeAll()
Clear the DAO and remove all of the entries.
|
void |
removeSpecific(Object key,
String valueKey)
Remove an entry from the DAO
|
void |
setRecordTimeOut(int recordTimeOut) |
void |
setTimeUnit(TimeUnit timeUnit) |
public void put(Object key, MappingEntry<?>... values)
ILispDAOpublic Object getSpecific(Object key, String valueKey)
ILispDAOgetSpecific in interface ILispDAOkey - The key of the value to fetchvalueKey - The value to fetchpublic Map<String,Object> get(Object key)
ILispDAOpublic void getAll(IRowVisitor visitor)
ILispDAOpublic void remove(Object key)
ILispDAOpublic void removeSpecific(Object key, String valueKey)
ILispDAOremoveSpecific in interface ILispDAOkey - The key of the entryvalueKey - The value to deletepublic void removeAll()
ILispDAOpublic void cleanOld()
public TimeUnit getTimeUnit()
public void setRecordTimeOut(int recordTimeOut)
public int getRecordTimeOut()
public void setTimeUnit(TimeUnit timeUnit)
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic ILispDAO putNestedTable(Object key, String valueKey)
ILispDAOputNestedTable in interface ILispDAOkey - The key for which a new table is linked invalueKey - The subkey under which to insert the new tableCopyright © 2017 OpenDaylight. All rights reserved.