public class HibernateRegion 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 HibernateCacheProxy |
cache
Cache instance.
|
protected HibernateRegionFactory |
factory |
protected Ignite |
ignite
Grid instance.
|
Constructor and Description |
---|
HibernateRegion(HibernateRegionFactory factory,
String name,
Ignite ignite,
HibernateCacheProxy 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 HibernateRegionFactory factory
protected final HibernateCacheProxy cache
protected Ignite ignite
public HibernateRegion(HibernateRegionFactory factory, String name, Ignite ignite, HibernateCacheProxy cache)
factory
- Region factory.name
- Region name.ignite
- Grid.cache
- Region cache.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
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019