Class TkmInclusionDuplication
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.threadSafeUtils.TkmInclusionDuplication
-
public class TkmInclusionDuplication extends Object
- Author:
- Giovanni Antino
-
-
Constructor Summary
Constructors Constructor Description TkmInclusionDuplication()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cleanUpOutdatedDuplicated(KeyWriterGlobalStatus kwGS)
static TransactionBox[]
deduplicate(TransactionBox[] transactions)
static ConcurrentSkipListMap<String,TransactionBox>
deduplicateSL(TransactionBox[] transactions)
static IncludedTransactionBean
deepCopy(IncludedTransactionBean includedTB)
Create an identical copy of the object.static TransactionBox[]
limitSize(TransactionBox[] transactions, int mbLimit, int transactionPerBlockLimit)
static TransactionBox[]
removeIncluded(TransactionBox[] transactions, KeyWriterGlobalStatus kwGS)
static TransactionBox[]
removeIncludedAndOutdated(TransactionBox[] transactions, KeyWriterGlobalStatus kwGS)
static void
updateIncludedList(KeyWriterGlobalStatus kwGS, TransactionBox[] transactions)
-
-
-
Method Detail
-
deduplicate
public static TransactionBox[] deduplicate(TransactionBox[] transactions)
-
deduplicateSL
public static ConcurrentSkipListMap<String,TransactionBox> deduplicateSL(TransactionBox[] transactions)
-
removeIncluded
public static TransactionBox[] removeIncluded(TransactionBox[] transactions, KeyWriterGlobalStatus kwGS)
-
removeIncludedAndOutdated
public static TransactionBox[] removeIncludedAndOutdated(TransactionBox[] transactions, KeyWriterGlobalStatus kwGS)
-
updateIncludedList
public static void updateIncludedList(KeyWriterGlobalStatus kwGS, TransactionBox[] transactions)
-
cleanUpOutdatedDuplicated
public static void cleanUpOutdatedDuplicated(KeyWriterGlobalStatus kwGS)
-
deepCopy
public static IncludedTransactionBean deepCopy(IncludedTransactionBean includedTB)
Create an identical copy of the object. The two copies are not related. Changes on an instance are NOT reflected on the second.- Parameters:
includedTB
-- Returns:
-
limitSize
public static TransactionBox[] limitSize(TransactionBox[] transactions, int mbLimit, int transactionPerBlockLimit)
-
-