org.gawst.asyncdb.purge.PurgeHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asyncdb Show documentation
Show all versions of asyncdb Show documentation
A set of helper class to keep a copy of small SQLite databases in memory in Android
package org.gawst.asyncdb.purge;
import org.gawst.asyncdb.AsynchronousDbHelper;
/**
* Interface for database purge handlers.
*/
public interface PurgeHandler {
/**
* Called anytime an element(s) is added to the database.
* Called in the database worker thread.
* @param db The {@link org.gawst.asyncdb.AsynchronousDbHelper} to purge.
*/
void onElementsAdded(AsynchronousDbHelper, ?> db);
}