public class TransactionImpl extends Object implements Transaction, TransactionSupport
Transaction.State| Constructor and Description |
|---|
TransactionImpl(TransactionManagerServiceImpl transactionManagerService,
NodeEngine nodeEngine,
TransactionOptions options,
String txOwnerUuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransactionLog(TransactionLog transactionLog) |
void |
begin() |
void |
commit() |
String |
getOwnerUuid() |
long |
getStartTime() |
Transaction.State |
getState() |
long |
getTimeoutMillis() |
TransactionLog |
getTransactionLog(Object key) |
TransactionOptions.TransactionType |
getTransactionType() |
List<TransactionLog> |
getTxLogs() |
String |
getTxnId() |
void |
prepare() |
void |
removeTransactionLog(Object key) |
void |
rollback() |
boolean |
setTimeoutMillis(long timeoutMillis) |
String |
toString() |
public TransactionImpl(TransactionManagerServiceImpl transactionManagerService, NodeEngine nodeEngine, TransactionOptions options, String txOwnerUuid)
public String getTxnId()
getTxnId in interface TransactiongetTxnId in interface TransactionSupportpublic TransactionOptions.TransactionType getTransactionType()
public void addTransactionLog(TransactionLog transactionLog)
addTransactionLog in interface TransactionSupportpublic TransactionLog getTransactionLog(Object key)
getTransactionLog in interface TransactionSupportpublic List<TransactionLog> getTxLogs()
public void removeTransactionLog(Object key)
removeTransactionLog in interface TransactionSupportpublic void begin()
throws IllegalStateException
begin in interface TransactionIllegalStateExceptionpublic void prepare()
throws TransactionException
prepare in interface TransactionTransactionExceptionpublic void commit()
throws TransactionException,
IllegalStateException
commit in interface TransactionTransactionExceptionIllegalStateExceptionpublic void rollback()
throws IllegalStateException
rollback in interface TransactionIllegalStateExceptionpublic long getStartTime()
public String getOwnerUuid()
getOwnerUuid in interface TransactionSupportpublic Transaction.State getState()
getState in interface TransactiongetState in interface TransactionSupportpublic long getTimeoutMillis()
getTimeoutMillis in interface TransactiongetTimeoutMillis in interface TransactionSupportpublic boolean setTimeoutMillis(long timeoutMillis)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.