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) |
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 DuplicateIDCache
Exception
public void deleteFromCache(byte[] duplicateID) throws Exception
deleteFromCache
in interface DuplicateIDCache
Exception
public boolean contains(byte[] duplID)
contains
in interface DuplicateIDCache
public void addToCache(byte[] duplID) throws Exception
addToCache
in interface DuplicateIDCache
Exception
public void addToCache(byte[] duplID, Transaction tx) throws Exception
addToCache
in interface DuplicateIDCache
Exception
public boolean atomicVerify(byte[] duplID, Transaction tx) throws Exception
atomicVerify
in interface DuplicateIDCache
Exception
public void addToCache(byte[] duplID, Transaction tx, boolean instantAdd) throws Exception
DuplicateIDCache
addToCache
in interface DuplicateIDCache
Exception
public void load(Transaction tx, byte[] duplID)
load
in interface DuplicateIDCache
public void clear() throws Exception
clear
in interface DuplicateIDCache
Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.