Interface DuplicateIDCache
-
- All Known Implementing Classes:
NoOpDuplicateIDCache
public interface DuplicateIDCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToCache(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)List<Pair<byte[],Long>>getMap()voidload(List<Pair<byte[],Long>> ids)voidload(Transaction tx, byte[] duplID)
-
-
-
Method Detail
-
contains
boolean contains(byte[] duplicateID)
-
atomicVerify
boolean atomicVerify(byte[] duplID, Transaction tx) throws Exception- Throws:
Exception
-
addToCache
void addToCache(byte[] duplicateID, Transaction tx) throws Exception- Throws:
Exception
-
addToCache
void addToCache(byte[] duplicateID, Transaction tx, boolean instantAdd) throws Exceptionit 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
-
load
void load(Transaction tx, byte[] duplID)
-
-