com.hazelcast.transaction.impl
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 Transaction
getTxnId
in interface TransactionSupport
public TransactionOptions.TransactionType getTransactionType()
public void addTransactionLog(TransactionLog transactionLog)
addTransactionLog
in interface TransactionSupport
public TransactionLog getTransactionLog(Object key)
getTransactionLog
in interface TransactionSupport
public List<TransactionLog> getTxLogs()
public void removeTransactionLog(Object key)
removeTransactionLog
in interface TransactionSupport
public void begin() throws IllegalStateException
begin
in interface Transaction
IllegalStateException
public void prepare() throws TransactionException
prepare
in interface Transaction
TransactionException
public void commit() throws TransactionException, IllegalStateException
commit
in interface Transaction
TransactionException
IllegalStateException
public void rollback() throws IllegalStateException
rollback
in interface Transaction
IllegalStateException
public long getStartTime()
public String getOwnerUuid()
getOwnerUuid
in interface TransactionSupport
public Transaction.State getState()
getState
in interface Transaction
getState
in interface TransactionSupport
public long getTimeoutMillis()
getTimeoutMillis
in interface Transaction
getTimeoutMillis
in interface TransactionSupport
public boolean setTimeoutMillis(long timeoutMillis)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.