|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidTxnList
Models the list of transactions that should be included in a snapshot. It is modelled as a high water mark, which is the largest transaction id that has been committed and a list of transactions that are not included.
| Nested Class Summary | |
|---|---|
static class |
ValidTxnList.RangeResponse
The response to a range query. |
| Field Summary | |
|---|---|
static String |
VALID_TXNS_KEY
Key used to store valid txn list in a Configuration object. |
| Method Summary | |
|---|---|
long |
getHighWatermark()
Get the largest committed transaction id. |
long[] |
getOpenTransactions()
Get the list of transactions under the high water mark that are still open. |
boolean |
isTxnCommitted(long txnid)
Indicates whether a given transaction has been committed and should be viewed as valid for read. |
ValidTxnList.RangeResponse |
isTxnRangeCommitted(long minTxnId,
long maxTxnId)
Find out if a range of transaction ids have been committed. |
void |
readFromString(String src)
Populate this validTxnList from the string. |
String |
writeToString()
Write this validTxnList into a string. |
| Field Detail |
|---|
static final String VALID_TXNS_KEY
Configuration object.
| Method Detail |
|---|
boolean isTxnCommitted(long txnid)
txnid - id for the transaction
ValidTxnList.RangeResponse isTxnRangeCommitted(long minTxnId,
long maxTxnId)
minTxnId - minimum txnid to look for, inclusivemaxTxnId - maximum txnid to look for, inclusive
String writeToString()
readFromString(String) to populate a validTxnsList.
void readFromString(String src)
writeToString().
src - source string.long getHighWatermark()
long[] getOpenTransactions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||