Class NoOpDuplicateIDCache
- java.lang.Object
-
- org.apache.activemq.artemis.core.postoffice.impl.NoOpDuplicateIDCache
-
- All Implemented Interfaces:
DuplicateIDCache
public final class NoOpDuplicateIDCache extends Object implements DuplicateIDCache
-
-
Constructor Summary
Constructors Constructor Description NoOpDuplicateIDCache()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean contains(byte[] duplicateID)
- Specified by:
containsin interfaceDuplicateIDCache
-
atomicVerify
public boolean atomicVerify(byte[] duplID, Transaction tx) throws Exception- Specified by:
atomicVerifyin interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
public void addToCache(byte[] duplicateID) throws Exception- Specified by:
addToCachein interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
public void addToCache(byte[] duplicateID, Transaction tx) throws Exception- Specified by:
addToCachein interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
public void addToCache(byte[] duplicateID, Transaction tx, boolean instantAdd) throws ExceptionDescription copied from interface:DuplicateIDCacheit 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- Specified by:
addToCachein interfaceDuplicateIDCache- Throws:
Exception
-
deleteFromCache
public void deleteFromCache(byte[] duplicateID) throws Exception- Specified by:
deleteFromCachein interfaceDuplicateIDCache- Throws:
Exception
-
load
public void load(List<Pair<byte[],Long>> ids) throws Exception
- Specified by:
loadin interfaceDuplicateIDCache- Throws:
Exception
-
load
public void load(Transaction tx, byte[] duplID)
- Specified by:
loadin interfaceDuplicateIDCache
-
clear
public void clear() throws Exception- Specified by:
clearin interfaceDuplicateIDCache- Throws:
Exception
-
getMap
public List<Pair<byte[],Long>> getMap()
- Specified by:
getMapin interfaceDuplicateIDCache
-
-