Class NoOpDuplicateIDCache
java.lang.Object
org.apache.activemq.artemis.core.postoffice.impl.NoOpDuplicateIDCache
- All Implemented Interfaces:
DuplicateIDCache
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
NoOpDuplicateIDCache
public NoOpDuplicateIDCache()
-
-
Method Details
-
contains
public boolean contains(byte[] duplicateID) - Specified by:
containsin interfaceDuplicateIDCache
-
atomicVerify
- Specified by:
atomicVerifyin interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
- Specified by:
addToCachein interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
- Specified by:
addToCachein interfaceDuplicateIDCache- Throws:
Exception
-
addToCache
Description 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
- Specified by:
deleteFromCachein interfaceDuplicateIDCache- Throws:
Exception
-
load
- Specified by:
loadin interfaceDuplicateIDCache- Throws:
Exception
-
load
- Specified by:
loadin interfaceDuplicateIDCache
-
clear
- Specified by:
clearin interfaceDuplicateIDCache- Throws:
Exception
-
getMap
- Specified by:
getMapin interfaceDuplicateIDCache
-
getSize
public int getSize()- Specified by:
getSizein interfaceDuplicateIDCache
-