public interface Transaction extends SyncPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts any changes made in this transaction context and discarding all locally cached updates.
|
AsyncTransaction |
async()
Returns the underlying asynchronous primitive.
|
void |
begin()
Starts a new transaction.
|
CommitStatus |
commit()
Commits a transaction that was previously started thereby making its changes permanent
and externally visible.
|
Isolation |
isolation()
Returns the transaction isolation level.
|
boolean |
isOpen()
Returns if this transaction context is open.
|
<K,V> TransactionalMapBuilder<K,V> |
mapBuilder(String name)
Returns a new transactional map builder.
|
<E> TransactionalSetBuilder<E> |
setBuilder(String name)
Returns a new transactional set builder.
|
TransactionId |
transactionId()
Returns the transaction identifier.
|
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeTransactionId transactionId()
Isolation isolation()
boolean isOpen()
void begin()
CommitStatus commit()
void abort()
<K,V> TransactionalMapBuilder<K,V> mapBuilder(String name)
K - the key typeV - the value typename - the map name<E> TransactionalSetBuilder<E> setBuilder(String name)
E - the set element typename - the set nameAsyncTransaction async()
SyncPrimitiveasync in interface SyncPrimitiveCopyright © 2013–2018. All rights reserved.