|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transaction
Hazelcast transaction interface.
Note that Hazelcast doesn't support two phase commit (XA) transactions.
Hazelcast.getTransaction()
Field Summary | |
---|---|
static int |
TXN_STATUS_ACTIVE
|
static int |
TXN_STATUS_COMMITTED
|
static int |
TXN_STATUS_COMMITTING
|
static int |
TXN_STATUS_NO_TXN
|
static int |
TXN_STATUS_PREPARED
|
static int |
TXN_STATUS_PREPARING
|
static int |
TXN_STATUS_ROLLED_BACK
|
static int |
TXN_STATUS_ROLLING_BACK
|
static int |
TXN_STATUS_UNKNOWN
|
Method Summary | |
---|---|
void |
begin()
Creates a new transaction and associate it with the current thread. |
void |
commit()
Commits the transaction associated with the current thread. |
int |
getStatus()
Returns the status of the transaction associated with the current thread. |
void |
rollback()
Rolls back the transaction associated with the current thread. |
Field Detail |
---|
static final int TXN_STATUS_NO_TXN
static final int TXN_STATUS_ACTIVE
static final int TXN_STATUS_PREPARED
static final int TXN_STATUS_COMMITTED
static final int TXN_STATUS_ROLLED_BACK
static final int TXN_STATUS_PREPARING
static final int TXN_STATUS_COMMITTING
static final int TXN_STATUS_ROLLING_BACK
static final int TXN_STATUS_UNKNOWN
Method Detail |
---|
void begin() throws IllegalStateException
IllegalStateException
- if transaction is already beganvoid commit() throws IllegalStateException
IllegalStateException
- if transaction didn't begin.void rollback() throws IllegalStateException
IllegalStateException
- if transaction didn't begin.int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |