Mercurial > hg > blitz_stable
view src/org/dancres/blitz/cache/CacheListener.java @ 17:46ac1a45718a
Add support for cache partitioning to improve concurrency.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sun, 05 Jul 2009 16:25:18 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz.cache; /** Register one of these with a Cache to be informed of it's actions. Useful for auxilliary actions such as indexing of Identifiables. */ public interface CacheListener { public void dirtied(Identifiable anIdentifiable); /** Indicates an entry was recovered from disk and loaded into the cache. */ public void loaded(Identifiable anIdentifiable); /** Indicates an entry was removed from the cache having, if necessary, been saved to disk. */ public void flushed(Identifiable anIdentifiable); }