ehcache

net.sf.ehcache.hibernate.regions
Class EhcacheDataRegion

java.lang.Object
  extended by net.sf.ehcache.hibernate.regions.EhcacheDataRegion
Direct Known Subclasses:
EhcacheQueryResultsRegion, EhcacheTimestampsRegion, EhcacheTransactionalDataRegion

public abstract class EhcacheDataRegion
extends Object

An Ehcache specific data region implementation.

This class is the ultimate superclass for all Ehcache Hibernate cache regions.

Author:
Chris Dennis, Greg Luck, Emmanuel Bernard, Abhishek Sanoujam

Field Summary
protected  EhcacheAccessStrategyFactory accessStrategyFactory
          The EhcacheAccessStrategyFactory used for creating various access strategies
protected  Ehcache cache
          Ehcache instance backing this Hibernate data region.
 
Method Summary
 boolean contains(Object key)
          Returns true if this region contains data for the given key.
 void destroy()
          
 Ehcache getEhcache()
          Return the Ehcache instance backing this Hibernate data region.
 long getElementCountInMemory()
          
 long getElementCountOnDisk()
          
 String getName()
          
 long getSizeInMemory()
          
 int getTimeout()
          
 long nextTimestamp()
          
 Map toMap()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected final Ehcache cache
Ehcache instance backing this Hibernate data region.


accessStrategyFactory

protected final EhcacheAccessStrategyFactory accessStrategyFactory
The EhcacheAccessStrategyFactory used for creating various access strategies

Method Detail

getName

public String getName()


destroy

public void destroy()
             throws CacheException

Throws:
CacheException

getSizeInMemory

public long getSizeInMemory()


getElementCountInMemory

public long getElementCountInMemory()


getElementCountOnDisk

public long getElementCountOnDisk()


toMap

public Map toMap()


nextTimestamp

public long nextTimestamp()


getTimeout

public int getTimeout()


getEhcache

public Ehcache getEhcache()
Return the Ehcache instance backing this Hibernate data region.


contains

public boolean contains(Object key)
Returns true if this region contains data for the given key.

This is a Hibernate 3.5 method.


ehcache

Copyright 2001-2015, Terracotta, Inc.