• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/java/src/com/sleepycat/db/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000,2008 Oracle.  All rights reserved.
5 *
6 * $Id: LogRecordHandler.java,v 12.7 2008/01/17 05:04:53 mjc Exp $
7 */
8package com.sleepycat.db;
9
10/**
11A function to process application-specific log records.
12**/
13public interface LogRecordHandler {
14    /**
15    A function to process application-specific log records.
16    @param environment
17    The enclosing database environment.
18    @param logRecord
19    A log record.
20    @param lsn
21    The log record's log sequence number.
22    @param operation
23    The recovery operation being performed.
24    @return
25    The function must return 0 on success and either the system errno
26    or a value outside of the Berkeley DB error name space on failure.
27    */
28    int handleLogRecord(Environment environment,
29                        DatabaseEntry logRecord,
30                        LogSequenceNumber lsn,
31                        RecoveryOperation operation);
32}
33