public class GridHibernateRegion extends Object implements org.hibernate.cache.spi.Region
Region
. This interface defines base contract for all L2 cache regions.Modifier and Type | Field and Description |
---|---|
protected GridCache<Object,Object> |
cache
Cache instance.
|
protected GridHibernateRegionFactory |
factory |
protected Ignite |
ignite
Grid instance.
|
Constructor and Description |
---|
GridHibernateRegion(GridHibernateRegionFactory factory,
String name,
Ignite ignite,
GridCache<Object,Object> cache) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key) |
void |
destroy() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
Map |
toMap() |
protected final GridHibernateRegionFactory factory
protected Ignite ignite
public String getName()
getName
in interface org.hibernate.cache.spi.Region
public void destroy() throws org.hibernate.cache.CacheException
destroy
in interface org.hibernate.cache.spi.Region
org.hibernate.cache.CacheException
public boolean contains(Object key)
contains
in interface org.hibernate.cache.spi.Region
public long getSizeInMemory()
getSizeInMemory
in interface org.hibernate.cache.spi.Region
public long getElementCountInMemory()
getElementCountInMemory
in interface org.hibernate.cache.spi.Region
public long getElementCountOnDisk()
getElementCountOnDisk
in interface org.hibernate.cache.spi.Region
public Map toMap()
toMap
in interface org.hibernate.cache.spi.Region
public long nextTimestamp()
nextTimestamp
in interface org.hibernate.cache.spi.Region
public int getTimeout()
getTimeout
in interface org.hibernate.cache.spi.Region
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 16 2015