package org.opendaylight.lispflowmapping.interfaces.dao;
import java.util.Map;
-import java.util.concurrent.TimeUnit;
-public interface ILispDAO extends IQueryAll {
+public interface ILispDAO {
/**
* Put a entry into the DAO.
- *
+ *
* @param key
* The entry's key.
* @param values
/**
* Get a specific value from the DAO.
- *
+ *
* @param key
* The key of the value to fetch
* @param valueKey
/**
* Get the entries from the DAO
- *
+ *
* @param key
* The key.
* @return The value from the DAO.
*/
- public <K> Map<String, Object> get(K key);
+ public Map<String, Object> get(Object key);
+
+ /**
+ * Enumerate all the entries from the DAO
+ *
+ * @param visitor
+ * The visitor object.
+ */
+ public void getAll(IRowVisitor visitor);
/**
* Remove an entry from the DAO
- *
+ *
* @param key
- * The key of the entry
- * @return true if success, false otherwise
+ * The key of the entry to delete
*/
- public boolean remove(Object key);
+ public void remove(Object key);
/**
* Remove an entry from the DAO
- *
+ *
* @param key
* The key of the entry
* @param valueKey
* The value to delete
- * @return true if success, false otherwise
*/
- public boolean removeSpecific(Object key, String valueKey);
+ public void removeSpecific(Object key, String valueKey);
/**
* Clear the DAO and remove all of the entries.
*/
- public void clearAll();
-
- /**
- * @return The time unit of the DAO cleaner
- */
- public TimeUnit getTimeUnit();
-
- /**
- * Set the time unit of the DAO cleaner
- *
- * @param timeUnit
- */
- public void setTimeUnit(TimeUnit timeUnit);
+ public void removeAll();
}