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) |
RefsOperation |
createRefsOperation(Queue queue) |
List<TransactionOperation> |
getAllOperations() |
long |
getCreateTime() |
long |
getID() |
Object |
getProperty(int index) |
Object |
getProtocolData() |
Transaction.State |
getState() |
Xid |
getXid() |
boolean |
hasTimedOut()
To validate if the Transaction had previously timed out.
|
boolean |
hasTimedOut(long currentTime,
int defaultTimeout) |
boolean |
isContainsPersistent() |
boolean |
isEffective() |
void |
markAsRollbackOnly(ActiveMQException exception) |
void |
prepare() |
void |
putProperty(int index,
Object property) |
void |
resume() |
void |
rollback() |
void |
setContainsPersistent() |
void |
setProtocolData(Object data)
Protocol managers can use this field to store any object needed.
|
void |
setState(Transaction.State state) |
void |
setTimeout(int timeout) |
void |
suspend() |
Object getProtocolData()
void setProtocolData(Object data)
boolean isEffective()
long getID()
Xid getXid()
void suspend()
void resume()
Transaction.State getState()
void setState(Transaction.State state)
void markAsRollbackOnly(ActiveMQException exception)
long getCreateTime()
void addOperation(TransactionOperation sync)
void afterStore(TransactionOperation sync)
List<TransactionOperation> getAllOperations()
boolean hasTimedOut(long currentTime, int defaultTimeout)
boolean hasTimedOut()
void putProperty(int index, Object property)
Object getProperty(int index)
boolean isContainsPersistent()
void setContainsPersistent()
void setTimeout(int timeout)
RefsOperation createRefsOperation(Queue queue)
Copyright © 2017 JBoss by Red Hat. All rights reserved.