/* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your option any later version). See * http://www.gnu.org/ for further details of the GPL. */ package freenet.client.async; /** Base class for inserts, including site inserts, at the level of a ClientRequester. * * WARNING: Changing non-transient members on classes that are Serializable can result in * restarting downloads or losing uploads. */ public abstract class BaseClientPutter extends ClientRequester { private static final long serialVersionUID = 1L; /** * zero arg c'tor for db4o on jamvm */ protected BaseClientPutter() { } protected BaseClientPutter(short priorityClass, ClientBaseCallback cb) { super(priorityClass, cb); } public void dump() { // Do nothing } public abstract void onTransition(ClientPutState from, ClientPutState to, ClientContext context); public abstract int getMinSuccessFetchBlocks(); }