2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 2000, 2012 Oracle and/or its affiliates. All rights reserved.
8 package com.sleepycat.db;
11 A function to process application-specific log records.
13 public interface LogRecordHandler {
15 A function to process application-specific log records.
17 The enclosing database environment.
21 The log record's log sequence number.
23 The recovery operation being performed.
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.
28 int handleLogRecord(Environment environment,
29 DatabaseEntry logRecord,
30 LogSequenceNumber lsn,
31 RecoveryOperation operation);