michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko.sync.synchronizer; michael@0: michael@0: public abstract class RecordConsumer implements Runnable { michael@0: michael@0: public abstract void stored(); michael@0: michael@0: /** michael@0: * There are no more store items to arrive at the delegate. michael@0: * When you're done, take care of finishing up. michael@0: */ michael@0: public abstract void queueFilled(); michael@0: public abstract void halt(); michael@0: michael@0: public abstract void doNotify(); michael@0: michael@0: protected boolean stopImmediately = false; michael@0: protected RecordsConsumerDelegate delegate; michael@0: michael@0: public RecordConsumer() { michael@0: super(); michael@0: } michael@0: }