public class PartitionedTableCache extends Object implements Cache
Cache.CacheLoader, Cache.Listener, Cache.RemoveException
Constructor and Description |
---|
PartitionedTableCache(int minCapacity,
int maxCapacity,
int partitionsTotal) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Transaction tx,
Object pk) |
void |
flush() |
Object[] |
getFields(Object pk) |
int |
getMaxCapacity() |
int |
getMaxPartitionCapacity() |
int |
getMinCapacity() |
int |
getMinPartitionCapacity() |
int |
getPartitionsTotal() |
Object[] |
getRelations(Object pk) |
void |
initOverager(long period,
long maxAge,
String threadName) |
void |
lock() |
void |
lock(Object key) |
void |
lockForUpdate(Transaction tx,
Object pk) |
void |
put(Transaction tx,
Object pk,
Object[] fields,
Object[] relations) |
void |
registerListener(Cache.Listener listener) |
void |
releaseLock(Transaction tx,
Object pk) |
void |
remove(Transaction tx,
Object pk) |
void |
setMaxCapacity(int maxCapacity) |
int |
size() |
void |
stopService() |
void |
unlock() |
void |
unlock(Object key) |
public PartitionedTableCache(int minCapacity, int maxCapacity, int partitionsTotal)
public void stopService()
public void initOverager(long period, long maxAge, String threadName)
public void registerListener(Cache.Listener listener)
public int size()
public int getMaxCapacity()
public void setMaxCapacity(int maxCapacity)
public int getMinCapacity()
public int getPartitionsTotal()
public int getMinPartitionCapacity()
public int getMaxPartitionCapacity()
public Object[] getRelations(Object pk)
getRelations
in interface Cache
public void put(Transaction tx, Object pk, Object[] fields, Object[] relations)
public void remove(Transaction tx, Object pk)
public boolean contains(Transaction tx, Object pk)
public void lockForUpdate(Transaction tx, Object pk) throws Exception
lockForUpdate
in interface Cache
Exception
public void releaseLock(Transaction tx, Object pk) throws Exception
releaseLock
in interface Cache
Exception
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.