01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2000,2008 Oracle. All rights reserved.
05: *
06: * $Id: TransactionWorker.java,v 1.15.2.2 2008/01/07 15:14:06 cwl Exp $
07: */
08:
09: package 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: */
18: public interface TransactionWorker {
19:
20: /**
21: * Perform the work for a single transaction.
22: *
23: * @see TransactionRunner#run
24: */
25: void doWork() throws Exception;
26: }
|