org.compass.core.cache.first
Class PlainFirstLevelCache

java.lang.Object
  extended by org.compass.core.cache.first.PlainFirstLevelCache
All Implemented Interfaces:
FirstLevelCache

public class PlainFirstLevelCache
extends Object
implements FirstLevelCache

A default implementation of first level cache.

Author:
kimchy

Constructor Summary
PlainFirstLevelCache()
           
 
Method Summary
 void evict(ResourceKey key)
           
 void evictAll()
           
 Object get(ResourceKey key)
           
 Resource getResource(ResourceKey key)
           
 void set(ResourceKey key, Object obj)
           
 void setResource(ResourceKey key, Resource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainFirstLevelCache

public PlainFirstLevelCache()
Method Detail

get

public Object get(ResourceKey key)
Specified by:
get in interface FirstLevelCache

getResource

public Resource getResource(ResourceKey key)
Specified by:
getResource in interface FirstLevelCache

set

public void set(ResourceKey key,
                Object obj)
Specified by:
set in interface FirstLevelCache

setResource

public void setResource(ResourceKey key,
                        Resource resource)
Specified by:
setResource in interface FirstLevelCache

evict

public void evict(ResourceKey key)
Specified by:
evict in interface FirstLevelCache

evictAll

public void evictAll()
Specified by:
evictAll in interface FirstLevelCache


Copyright (c) 2004-2009 The Compass Project.