/* * - * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2003 * Sleepycat Software. All rights reserved. * * $Id: DbFeedbackHandler.java,v 11.19 2003/11/28 18:35:43 bostic Exp $ */ package com.sleepycat.db; /** * The DbFeedbackHandler interface is used by the Db.setFeedback * method. This interface defines the application-specific function * to be called to to report Berkeley DB operation progress. */ public interface DbFeedbackHandler { /** * The DbFeedbackHandler interface is used by the Db.setFeedback * method. This interface defines the application-specific * function to be called to to report Berkeley DB operation * progress.

* *

* * @param db a reference to the enclosing database. * @param opcode an operation code. The opcode parameter * may take on any of the following values: * * * * * @param percent the percent of the operation that has been * completed, specified as an integer value between 0 and * 100. */ public abstract void feedback(Db db, int opcode, int percent); }