TransactionWorker (Oracle - Berkeley DB Client-Server API)
Date: 2018-05-29

com.sleepycat.client.collections

## Interface TransactionWorker

-     public interface TransactionWorker

  The interface implemented to perform the work within a transaction. To run a transaction, an instance of this interface is passed to the `TransactionRunner.run(com.sleepycat.client.collections.TransactionWorker)` method.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `doWork()` Perform the work for a single transaction.

- - ### Method Detail

    - #### doWork

          void doWork()
               throws java.lang.Exception

      Perform the work for a single transaction.
      Throws:
        `java.lang.Exception` - the exception to be thrown to the caller of `TransactionRunner.run(TransactionWorker)`. The exception will first be unwrapped by calling `ExceptionUnwrapper.unwrap(java.lang.Exception)`, and the transaction will be aborted.
      See Also:
        `TransactionRunner.run(com.sleepycat.client.collections.TransactionWorker)`

Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.