1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2000,2006 Oracle. All rights reserved. 5 * 6 * $Id: TransactionWorker.java,v 1.15 2006/10/30 21:14:10 bostic Exp $ 7 */ 8 9 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() 26 throws Exception; 27 } 28