uk.ac.ic.doc.automed.util.cache
Interface Cacheable

All Superinterfaces:
java.util.Iterator
All Known Subinterfaces:
IQueryCache
All Known Implementing Classes:
DefaultQueryCache, QueryCache

public interface Cacheable
extends java.util.Iterator


Method Summary
 void addListener(CacheListener listener)
          Add a listener to the cache
 void clear()
          Clear the cache
 CacheContentDescription getContentObject()
          Get the actual content object
 void notifyListeners(Cacheable cacheObj)
          Notify listeners to handle a specific event
 void refresh()
          Refresh cache content
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

addListener

void addListener(CacheListener listener)
Add a listener to the cache


notifyListeners

void notifyListeners(Cacheable cacheObj)
Notify listeners to handle a specific event

Parameters:
cacheObj - the Cacheable object to be used by listener to handle event

clear

void clear()
Clear the cache


refresh

void refresh()
Refresh cache content


getContentObject

CacheContentDescription getContentObject()
Get the actual content object