public interface Transaction
Hazelcast.getTransaction()| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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()
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.