@Override protected void insert(Record record) throws NoGuidForIdException, NullCursorException, ParentNotFoundException { try { insertionManager.enqueueRecord((BookmarkRecord) record); } catch (Exception e) { throw new NullCursorException(e); } }
protected void flushQueues() { long now = now(); Logger.debug(LOG_TAG, "Applying remaining insertions."); try { insertionManager.finishUp(); Logger.debug(LOG_TAG, "Done applying remaining insertions."); } catch (Exception e) { Logger.warn(LOG_TAG, "Unable to apply remaining insertions.", e); } Logger.debug(LOG_TAG, "Applying deletions."); try { untrackGUIDs(deletionManager.flushAll(getIDForGUID("unfiled"), now)); Logger.debug(LOG_TAG, "Done applying deletions."); } catch (Exception e) { Logger.error(LOG_TAG, "Unable to apply deletions.", e); } }