railo.commons.io.cache
Interface CacheEventListener

All Superinterfaces:
Serializable
All Known Implementing Classes:
ComponentCacheEventListener, SessionEndCacheEvent

public interface CacheEventListener
extends Serializable

Ac CacheEventListener is registred to a cache implementing the interface CacheEvent, a CacheEventListener can listen to certain event happening in a cache


Method Summary
 CacheEventListener duplicate()
           
 void onExpires(CacheEntry entry)
          this method is invoked before a entry expires (lifetime and idletime)
 void onPut(CacheEntry entry)
          this method is invoked before a new Entry is putted to a cache (update and insert)
 void onRemove(CacheEntry entry)
          this method is invoked before a Cache Entry is removed from Cache
 

Method Detail

onRemove

void onRemove(CacheEntry entry)
this method is invoked before a Cache Entry is removed from Cache

Parameters:
entry - entry that will be removed from Cache

onPut

void onPut(CacheEntry entry)
this method is invoked before a new Entry is putted to a cache (update and insert)


onExpires

void onExpires(CacheEntry entry)
this method is invoked before a entry expires (lifetime and idletime)


duplicate

CacheEventListener duplicate()


Copyright © 2012 Railo