comparison src/org/dancres/blitz/cache/CacheListener.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.cache;
2
3 /**
4 Register one of these with a Cache to be informed of it's actions.
5 Useful for auxilliary actions such as indexing of Identifiables.
6 */
7 public interface CacheListener {
8 public void dirtied(Identifiable anIdentifiable);
9
10 /**
11 Indicates an entry was recovered from disk and loaded into the
12 cache.
13 */
14 public void loaded(Identifiable anIdentifiable);
15
16 /**
17 Indicates an entry was removed from the cache having, if necessary,
18 been saved to disk.
19 */
20 public void flushed(Identifiable anIdentifiable);
21 }