• 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/collections/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000,2008 Oracle.  All rights reserved.
5 *
6 * $Id: TransactionWorker.java,v 12.6 2008/01/08 20:58:36 bostic Exp $
7 */
8
9package com.sleepycat.collections;
10
11/**
12 * The interface implemented to perform the work within a transaction.
13 * To run a transaction, an instance of this interface is passed to the
14 * {@link TransactionRunner#run} method.
15 *
16 * @author Mark Hayes
17 */
18public interface TransactionWorker {
19
20    /**
21     * Perform the work for a single transaction.
22     *
23     * @see TransactionRunner#run
24     */
25    void doWork()
26        throws Exception;
27}
28