public class PreparableTransactionRunner
extends com.sleepycat.collections.TransactionRunner
TransactionRunner
, which allows us to prepare a transaction without committing it. The
transaction prepared is accessible via CurrentTransaction.getTransaction()
Constructor and Description |
---|
PreparableTransactionRunner(com.sleepycat.je.Environment env)
Delegates to the
superclass and caches
a current reference to CurrentTransaction . |
PreparableTransactionRunner(com.sleepycat.je.Environment env,
int maxRetries,
com.sleepycat.je.TransactionConfig config)
Delegates to the
superclass and caches a current reference to CurrentTransaction . |
Modifier and Type | Method and Description |
---|---|
void |
prepare(com.sleepycat.collections.TransactionWorker worker)
Same behaviour as
run , except that the
transaction is not committed on success. |
public PreparableTransactionRunner(com.sleepycat.je.Environment env, int maxRetries, com.sleepycat.je.TransactionConfig config)
superclass
and caches a current reference to CurrentTransaction
.TransactionRunner.TransactionRunner(com.sleepycat.je.Environment, int, com.sleepycat.je.TransactionConfig)
public PreparableTransactionRunner(com.sleepycat.je.Environment env)
superclass
and caches
a current reference to CurrentTransaction
.TransactionRunner.TransactionRunner(com.sleepycat.je.Environment)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.