class RemitStoreOnSQLite implements RemitSyncExecutor.RemitAgent, DownloadStore {

    @Override
    public void onTaskEnd(int id, @NonNull EndCause cause, @Nullable Exception exception) {
        sqliteCache.onTaskEnd(id, cause, exception);

        if (cause == EndCause.COMPLETED) {
            remitHelper.discard(id);
        } else {
            remitHelper.endAndEnsureToDB(id);
        }
    }

      RemitStoreOnSQLite(@NonNull BreakpointStoreOnSQLite sqlite);
      RemitStoreOnSQLite(@NonNull RemitSyncToDBHelper helper, @NonNull BreakpointStoreOnSQLite sqlite,
                       @NonNull DownloadStore sqliteCache,
                       @NonNull BreakpointSQLiteHelper sqLiteHelper);

}