|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IndexTransaction
This represents a transactional index operation
| Field Summary | |
|---|---|
static int |
STATUS_ACTIVE
|
static int |
STATUS_COMMITTED
|
static int |
STATUS_COMMITTING
|
static int |
STATUS_MARKED_ROLLBACK
|
static int |
STATUS_NO_TRANSACTION
|
static int |
STATUS_PREPARED
|
static int |
STATUS_PREPARING
|
static int |
STATUS_ROLLEDBACK
|
static int |
STATUS_ROLLING_BACK
|
static int |
STATUS_UNKNOWN
|
static boolean[] |
TRANSACTION_ACTIVE
|
static String[] |
TRANSACTION_STATUS
|
| Method Summary | |
|---|---|
void |
clear(String key)
Clear an object placed in the transaction |
void |
close()
|
void |
commit()
Commit the transaction and make it available to others in the cluster |
Object |
get(String key)
get an Object from the transaction, that may have been placed in the transaction by earlier phases. |
int |
getStatus()
get the transaction status |
long |
getTransactionId()
|
void |
open()
|
void |
prepare()
Prepare to commit this transaction, all the work is done, but all the listeners need to be ready and able to performa commit without failure |
void |
put(String key,
Object obj)
Put an object into the transaction for use in later phases |
void |
rollback()
|
| Field Detail |
|---|
static final int STATUS_ACTIVE
static final int STATUS_COMMITTED
static final int STATUS_COMMITTING
static final int STATUS_MARKED_ROLLBACK
static final int STATUS_NO_TRANSACTION
static final int STATUS_PREPARED
static final int STATUS_PREPARING
static final int STATUS_ROLLEDBACK
static final int STATUS_ROLLING_BACK
static final int STATUS_UNKNOWN
static final String[] TRANSACTION_STATUS
static final boolean[] TRANSACTION_ACTIVE
| Method Detail |
|---|
void prepare()
throws IndexTransactionException
IndexTransactionException
void commit()
throws IndexTransactionException
IndexTransactionException
void rollback()
throws IndexTransactionException
IndexTransactionException - if the transaction is not openlong getTransactionId()
void close()
throws IndexTransactionException
IndexTransactionExceptionint getStatus()
Object get(String key)
key -
void clear(String key)
key -
void put(String key,
Object obj)
key - obj -
void open()
throws IndexTransactionException
IndexTransactionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||