org.omnifaces.component.output.cache
Class DefaultCache

java.lang.Object
  extended by org.omnifaces.component.output.cache.TimeToLiveCache
      extended by org.omnifaces.component.output.cache.DefaultCache
All Implemented Interfaces:
java.io.Serializable, Cache

public class DefaultCache
extends TimeToLiveCache

An in-memory cache implementation that's used if the user did not configure an explicit caching provider.

For the actual implementation, a repackaged ConcurrentLinkedHashMap is used if a maximum capacity is requested, otherwise a plain ConcurrentHashMap is used.

See: http://code.google.com/p/concurrentlinkedhashmap

Since:
1.1
Author:
Arjan Tijms
See Also:
Serialized Form

Constructor Summary
DefaultCache(java.lang.Integer defaultTimeToLive, java.lang.Integer maxCapacity)
           
 
Method Summary
 
Methods inherited from class org.omnifaces.component.output.cache.TimeToLiveCache
get, getAttribute, put, put, putAttribute, remove, setCacheStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCache

public DefaultCache(java.lang.Integer defaultTimeToLive,
                    java.lang.Integer maxCapacity)