Top Description Fields Constructors Methods
net.sf.ehcache.hibernate.ccs

pack-priv abstract Class AbstractEhcacheConcurrencyStrategy

extends Object
implements CacheConcurrencyStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.CacheConcurrencyStrategy
Known Direct Subclasses
net.sf.ehcache.hibernate.ccs.EhcacheNonstrictReadWriteCache, net.sf.ehcache.hibernate.ccs.EhcacheReadOnlyCache, net.sf.ehcache.hibernate.ccs.EhcacheReadWriteCache
Annotations
@Deprecated
Imports
net.sf.ehcache.hibernate.EhCache, org.hibernate.cache.Cache, .CacheConcurrencyStrategy, .CacheException, org.slf4j.Logger, .LoggerFactory

Deprecated

Superclass of all Ehcache specific cache concurrency strategies.
Author
Chris Dennis

Field Summary

Modifier and TypeField and Description
protected EhCache
cache

Ehcache instance this strategy accesses.

private static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
clear()

Implements org.hibernate.cache.CacheConcurrencyStrategy.clear.

Evict all items from the cache immediately.
public final void
public final Cache
getCache()

Implements org.hibernate.cache.CacheConcurrencyStrategy.getCache.

Deprecated as a consequence of Cache being deprecated.
Get the wrapped cache implementation
public final String
public final void
remove(Object key)

Implements org.hibernate.cache.CacheConcurrencyStrategy.remove.

Evict an item from the cache immediately (without regard for transaction isolation).
public final void
setCache(Cache cache)

Implements org.hibernate.cache.CacheConcurrencyStrategy.setCache.

Deprecated as a consequence of Cache being deprecated.
Set the underlying cache implementation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
protected EhCache cache

Deprecated

as a consequence of EhCache being deprecated. See corresponding docs for further information.

Ehcache instance this strategy accesses.

LOGback to summary
private static final Logger LOG

Constructor Detail

AbstractEhcacheConcurrencyStrategyback to summary
pack-priv AbstractEhcacheConcurrencyStrategy()

Method Detail

clearback to summary
public final void clear() throws CacheException

Implements org.hibernate.cache.CacheConcurrencyStrategy.clear.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.clear.

Evict all items from the cache immediately.

destroyback to summary
public final void destroy()

Implements org.hibernate.cache.CacheConcurrencyStrategy.destroy.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.destroy.

Clean up all resources.

getCacheback to summary
public final Cache getCache()

Implements org.hibernate.cache.CacheConcurrencyStrategy.getCache.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.getCache.

Deprecated

as a consequence of Cache being deprecated. See corresponding docs for further information.

Get the wrapped cache implementation

getRegionNameback to summary
public final String getRegionName()

Implements org.hibernate.cache.CacheConcurrencyStrategy.getRegionName.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.getRegionName.

Get the cache region name

removeback to summary
public final void remove(Object key) throws CacheException

Implements org.hibernate.cache.CacheConcurrencyStrategy.remove.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.remove.

Evict an item from the cache immediately (without regard for transaction isolation).

setCacheback to summary
public final void setCache(Cache cache) throws CacheException

Implements org.hibernate.cache.CacheConcurrencyStrategy.setCache.

Doc from org.hibernate.cache.CacheConcurrencyStrategy.setCache.

Deprecated

as a consequence of Cache being deprecated. See corresponding docs for further information.

Set the underlying cache implementation.

Exceptions
CacheException:
if the underlying cache is not an Ehcache