import org.eclipse.core.runtime.IProgressMonitor;
import org.simantics.db.RequestProcessor;
import org.simantics.db.Resource;
+import org.simantics.db.Session;
import org.simantics.db.layer0.adapter.GenericRelation;
/**
public void fullRebuild(IProgressMonitor monitor, RequestProcessor processor) throws IndexException;
+ /**
+ * Flush any memory-based index caches to disk and close down any resources
+ * related to each separate index.
+ *
+ * Must be invoked outside of any database transactions.
+ *
+ * @param monitor
+ * @param processor
+ * @throws IndexException
+ */
+ public void flush(IProgressMonitor monitor, Session session) throws IndexException;
+
}