org.compass.core.cache.first
Interface FirstLevelCache

All Known Implementing Classes:
NullFirstLevelCache, PlainFirstLevelCache

public interface FirstLevelCache

First leve cache used to store resources and objects that are used within a session level. Since sessions are not thread safe, there is no need to worry about thread safety here.

Author:
kimchy

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)
           
 

Method Detail

get

Object get(ResourceKey key)

getResource

Resource getResource(ResourceKey key)

set

void set(ResourceKey key,
         Object obj)

setResource

void setResource(ResourceKey key,
                 Resource resource)

evict

void evict(ResourceKey key)

evictAll

void evictAll()


Copyright (c) 2004-2009 The Compass Project.