Package ca.cdr.api.transactionlog
Class TransactionLogIdentifiers
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Long>
This is a thin wrapper around the mapping of Module ID to PID. For example, if you have 2 transaction log writers, one in MODULE_A and one in MODULE_B, a map might look like this
after you tell the ITransactionLogStoringSvc to store a transaction log.
{
'MODULE_A": 123,
"MODULE_B": 456
}
This class exists to make obvious the fact that when a transaction log is distributed to multiple writers, each will generate their own PIDs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TransactionLogIdentifiers
-
TransactionLogIdentifiers
public TransactionLogIdentifiers()
-
-
Method Details
-
getTransactionGuid
-
setTransactionGuid
-