• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/java/src/com/sleepycat/db/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000-2009 Oracle.  All rights reserved.
5 *
6 * $Id$
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