org.sakaiproject.service.framework.memory
Interface CacheRefresher

All Known Implementing Classes:
BaseAssignmentService.AssignmentCacheRefresher, BaseAssignmentService.AssignmentContentCacheRefresher, BaseAssignmentService.AssignmentSubmissionCacheRefresher, BaseCalendarService, BaseContentService, BaseMessageService, BaseNotificationService

public interface CacheRefresher

Utility API for classes that will refresh a cache entry when expired.

Version:
$Revision: 632 $
Author:
University of Michigan, CHEF Software Development Team

Method Summary
 Object refresh(Object key, Object oldValue, Event event)
          Get a new value for this key whose value has already expired in the cache.
 

Method Detail

refresh

public Object refresh(Object key,
                      Object oldValue,
                      Event event)
Get a new value for this key whose value has already expired in the cache.

Parameters:
key - The key whose value has expired and needs to be refreshed.
oldValue - The old exipred value of the key.
event - The event which triggered this refresh.
Returns:
a new value for use in the cache for this key; if null, the entry will be removed.