|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TxnFactory
A Factory responsible for creating a Txn. To set properties on Transactions you need to look
at the TxnFactoryBuilder. It could be that over time different types of transactions are returned,
e.g. because the speculative behavior is enabled.
A TxnFactory 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.
TxnFactoryBuilder| Method Summary | |
|---|---|
TxnConfig |
getConfig()
Gets the TxnConfig used by this TxnFactory. |
TxnFactoryBuilder |
getTxnFactoryBuilder()
|
Txn |
newTxn()
Creates a new Txn. |
| Method Detail |
|---|
TxnConfig getConfig()
TxnConfig used by this TxnFactory.
TxnFactoryBuilder getTxnFactoryBuilder()
Txn newTxn()
Txn.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||