Search in sources :

Example 1 with LruDelegate

use of com.google.firebase.firestore.local.LruDelegate in project firebase-android-sdk by firebase.

the class SQLiteComponentProvider method createGarbageCollectionScheduler.

@Override
protected Scheduler createGarbageCollectionScheduler(Configuration configuration) {
    LruDelegate lruDelegate = ((SQLitePersistence) getPersistence()).getReferenceDelegate();
    LruGarbageCollector gc = lruDelegate.getGarbageCollector();
    return gc.newScheduler(configuration.getAsyncQueue(), getLocalStore());
}
Also used : LruGarbageCollector(com.google.firebase.firestore.local.LruGarbageCollector) LruDelegate(com.google.firebase.firestore.local.LruDelegate) SQLitePersistence(com.google.firebase.firestore.local.SQLitePersistence)

Aggregations

LruDelegate (com.google.firebase.firestore.local.LruDelegate)1 LruGarbageCollector (com.google.firebase.firestore.local.LruGarbageCollector)1 SQLitePersistence (com.google.firebase.firestore.local.SQLitePersistence)1