Top Description Interfaces Classes
[default module]

Package net.sf.ehcache.constructs.blocking


Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs. One meaning of a construct is "an abstract or general idea inferred or derived from specific instances". Just like patterns emerge from noting the similarities of problems and gradually finding a solution to classes of them, so to constructs are general solutions to commond problems. With the constructs package, concrete, extensible implementations are offered to solve these common problems.

Interface Summary

Modifier and TypeInterface and Description
public interface
CacheEntryFactory

Creates objects to populate the cache.

public interface
UpdatingCacheEntryFactory

A CacheEntryFactory with one additional method, updateEntryValue((Serializable key, Serializable value) which allows the cache entry to updated rather than replaced.

Class Summary

Modifier and TypeClass and Description
public class
BlockingCache

A blocking decorator for an Ehcache, backed by a Ehcache.

public class
BlockingCacheOperationOutcomes

The Class BlockingCacheOperationOutcomes.

public class
LockTimeoutException

Indicates that a timeout has occured while attempting to obtain a lock using net.sf.ehcache.concurrent.ReadWriteLockSync#tryLock(net.sf.ehcache.concurrent.LockType, long)

This is a normal runtime exception which should be handled by calling code.

public class
SelfPopulatingCache

A selfpopulating decorator for Ehcache that creates entries on demand.

public class
UpdatingSelfPopulatingCache

A net.sf.ehcache.Cache backed cache that creates entries on demand.