01: package com.completex.objective.components.ocache;
02:
03: /**
04: * Cache that notifies listeners
05: *
06: * @author Gennady Krizhevsky
07: */
08: public interface OdalNotifyingCache extends OdalCache {
09:
10: /**
11: * Adds listener
12: *
13: * @param listener listener
14: */
15: void addListener(OdalCacheListener listener);
16:
17: /**
18: * Removes listener
19: *
20: * @param listener listener
21: */
22: void removeListener(OdalCacheListener listener);
23:
24: /**
25: * Removes all listeners
26: */
27: void removeAllListeners();
28:
29: }
|