class Transaction {
- Map<Integer, TransactionPart> parts = NULL;
+ Hashtable<Integer, TransactionPart> parts = NULL;
Set<Integer> missingParts = NULL;
List<Integer> partsPendingSend = NULL;
bool isComplete = false;
bool hadServerFailure = false;
Transaction() {
- parts = new HashMap<Integer, TransactionPart>();
+ parts = new Hashtable<Integer, TransactionPart>();
keyValueGuardSet = new HashSet<KeyValue>();
keyValueUpdateSet = new HashSet<KeyValue>();
partsPendingSend = new ArrayList<Integer>();
return clientLocalSequenceNumber;
}
- Map<Integer, TransactionPart> getParts() {
+ Hashtable<Integer, TransactionPart> getParts() {
return parts;
}
}
}
- bool evaluateGuard(Map<IoTString, KeyValue> committedKeyValueTable, Map<IoTString, KeyValue> speculatedKeyValueTable, Map<IoTString, KeyValue> pendingTransactionSpeculatedKeyValueTable) {
+ bool evaluateGuard(Hashtable<IoTString, KeyValue> committedKeyValueTable, Hashtable<IoTString, KeyValue> speculatedKeyValueTable, Hashtable<IoTString, KeyValue> pendingTransactionSpeculatedKeyValueTable) {
for (KeyValue kvGuard : keyValueGuardSet) {
// First check if the key is in the speculative table, this is the value of the latest assumption