public static interface TransactionController.ExecutionBuilder
DatasetReader
s and DatasetWriter
s participating in a transaction.Modifier and Type | Method and Description |
---|---|
TransactionController.ExecutionBuilder |
timeout(long timeOut,
java.util.concurrent.TimeUnit timeUnit)
Set the timeout for the transaction to be executed
|
TransactionController.ExecutionBuilder |
using(java.lang.String name,
com.terracottatech.store.DatasetReader<?> reader)
Adds a
DatasetReader as a participant in the transaction |
TransactionController.ExecutionBuilder |
using(java.lang.String name,
com.terracottatech.store.DatasetWriterReader<?> writerReader)
Adds a
DatasetWriterReader as a participant in the transaction |
TransactionController.ExecutionBuilder timeout(long timeOut, java.util.concurrent.TimeUnit timeUnit)
timeOut
- timeout if the transactiontimeUnit
- the time unit of the time argumentExecutionBuilder
with the given transaction timeoutTransactionController.ExecutionBuilder using(java.lang.String name, com.terracottatech.store.DatasetWriterReader<?> writerReader)
DatasetWriterReader
as a participant in the transactionname
- name that maps to the given DatasetWriterReader
writerReader
- participating DatasetWriterReader
ExecutionBuilder
with the given DatasetWriterReader
added as participantTransactionController.ExecutionBuilder using(java.lang.String name, com.terracottatech.store.DatasetReader<?> reader)
DatasetReader
as a participant in the transactionname
- name that maps to the given DatasetReader
reader
- participating DatasetReader
ExecutionBuilder
with the given DatasetReader
added as participant