org.multiverse.api
Interface TransactionFactory<T extends Transaction>
- Type Parameters:
T -
public interface TransactionFactory<T extends Transaction>
A Factory responsible for creating a Transaction. To set properties for Transactions you need to look
at the TransactionFactoryBuilder.
A TransactionFactory is thread-safe and it is expected to be shared between threads (doesn't impose it, but it
is the most logical use case). It also is expected to be re-used instead of recreated.
getBuilder
TransactionFactoryBuilder getBuilder()
start
T start()
- Creates a new and started Transaction.
If in the future unstarted Transactions are wanted, contact one of the Multiverse developers.
- Returns:
- the created Transaction
- Throws:
StartFailureException - if starting a new transaction failed.
Copyright © 2008-2010 Multiverse. All Rights Reserved.