Interface DuplicateIDCache
- All Known Implementing Classes:
NoOpDuplicateIDCache
public interface DuplicateIDCache
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(byte[] duplicateID) voidaddToCache(byte[] duplicateID, Transaction tx) voidaddToCache(byte[] duplicateID, Transaction tx, boolean instantAdd) It will add the data to the cache.booleanatomicVerify(byte[] duplID, Transaction tx) voidclear()booleancontains(byte[] duplicateID) voiddeleteFromCache(byte[] duplicateID) getMap()intgetSize()voidvoidload(Transaction tx, byte[] duplID)
-
Method Details
-
contains
boolean contains(byte[] duplicateID) -
atomicVerify
- Throws:
Exception
-
addToCache
- Throws:
Exception
-
addToCache
- Throws:
Exception
-
getSize
int getSize() -
addToCache
It will add the data to the cache. If TX == null it won't use a transaction. if instantAdd=true, it won't wait a transaction to add on the cache which is needed on the case of the Bridges- Throws:
Exception
-
deleteFromCache
- Throws:
Exception
-
load
- Throws:
Exception
-
load
-
clear
- Throws:
Exception
-
getMap
-