michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: package org.mozilla.gecko.background.sync.helpers; michael@0: michael@0: import java.util.concurrent.ExecutorService; michael@0: michael@0: import org.mozilla.gecko.sync.repositories.delegates.RepositorySessionFetchRecordsDelegate; michael@0: import org.mozilla.gecko.sync.repositories.domain.Record; michael@0: michael@0: public abstract class SimpleSuccessFetchDelegate extends DefaultDelegate implements michael@0: RepositorySessionFetchRecordsDelegate { michael@0: @Override michael@0: public void onFetchFailed(Exception ex, Record record) { michael@0: performNotify("Fetch failed", ex); michael@0: } michael@0: michael@0: @Override michael@0: public RepositorySessionFetchRecordsDelegate deferredFetchDelegate(ExecutorService executor) { michael@0: return this; michael@0: } michael@0: }