public interface Transaction
Modifier and Type | Interface and Description |
---|---|
static class |
Transaction.State |
Modifier and Type | Method and Description |
---|---|
void |
addOperation(TransactionOperation sync) |
void |
afterStore(TransactionOperation sync)
This is an operation that will be called right after the storage is completed.
|
void |
commit() |
void |
commit(boolean onePhase) |
List<TransactionOperation> |
getAllOperations() |
long |
getCreateTime() |
long |
getID() |
Object |
getProperty(int index) |
Transaction.State |
getState() |
Xid |
getXid() |
boolean |
hasTimedOut(long currentTime,
int defaultTimeout) |
boolean |
isContainsPersistent() |
boolean |
isEffective() |
void |
markAsRollbackOnly(HornetQException exception) |
void |
prepare() |
void |
putProperty(int index,
Object property) |
void |
resume() |
void |
rollback() |
void |
setContainsPersistent() |
void |
setState(Transaction.State state) |
void |
setTimeout(int timeout) |
void |
suspend() |
boolean isEffective()
long getID()
Xid getXid()
void suspend()
void resume()
Transaction.State getState()
void setState(Transaction.State state)
void markAsRollbackOnly(HornetQException exception)
long getCreateTime()
void addOperation(TransactionOperation sync)
void afterStore(TransactionOperation sync)
List<TransactionOperation> getAllOperations()
boolean hasTimedOut(long currentTime, int defaultTimeout)
void putProperty(int index, Object property)
Object getProperty(int index)
boolean isContainsPersistent()
void setContainsPersistent()
void setTimeout(int timeout)
Copyright © 2018 JBoss by Red Hat. All rights reserved.