public class DuplicateIDCacheImpl extends Object implements DuplicateIDCache
| Constructor and Description |
|---|
DuplicateIDCacheImpl(SimpleString address,
int size,
StorageManager storageManager,
boolean persist) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(byte[] duplID) |
void |
addToCache(byte[] duplID,
Transaction tx) |
void |
addToCache(byte[] duplID,
Transaction tx,
boolean instantAdd)
it will add the data to the cache.
|
boolean |
atomicVerify(byte[] duplID,
Transaction tx) |
void |
clear() |
boolean |
contains(byte[] duplID) |
void |
deleteFromCache(byte[] duplicateID) |
List<Pair<byte[],Long>> |
getMap() |
void |
load(List<Pair<byte[],Long>> theIds) |
void |
load(Transaction tx,
byte[] duplID) |
public DuplicateIDCacheImpl(SimpleString address, int size, StorageManager storageManager, boolean persist)
public void load(List<Pair<byte[],Long>> theIds) throws Exception
load in interface DuplicateIDCacheExceptionpublic void deleteFromCache(byte[] duplicateID)
throws Exception
deleteFromCache in interface DuplicateIDCacheExceptionpublic boolean contains(byte[] duplID)
contains in interface DuplicateIDCachepublic void addToCache(byte[] duplID)
throws Exception
addToCache in interface DuplicateIDCacheExceptionpublic void addToCache(byte[] duplID,
Transaction tx)
throws Exception
addToCache in interface DuplicateIDCacheExceptionpublic boolean atomicVerify(byte[] duplID,
Transaction tx)
throws Exception
atomicVerify in interface DuplicateIDCacheExceptionpublic void addToCache(byte[] duplID,
Transaction tx,
boolean instantAdd)
throws Exception
DuplicateIDCacheaddToCache in interface DuplicateIDCacheExceptionpublic void load(Transaction tx, byte[] duplID)
load in interface DuplicateIDCachepublic void clear()
throws Exception
clear in interface DuplicateIDCacheExceptionpublic List<Pair<byte[],Long>> getMap()
getMap in interface DuplicateIDCacheCopyright © 2018 JBoss by Red Hat. All rights reserved.