Interface ICacheListener<K,V>

All Known Subinterfaces:
ILateralCacheListener<K,V>, IRemoteCacheListener<K,V>
All Known Implementing Classes:
AbstractDiskCache.MyCacheListener, AbstractRemoteCacheListener, CacheAdaptor, LateralTCPListener, RemoteCacheListener, RemoteHttpClientListener

public interface ICacheListener<K,V>
Used to receive a cache event notification.

Note: objects which implement this interface are local listeners to cache changes, whereas objects which implement IRmiCacheListener are remote listeners to cache changes.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the listenerId attribute of the ICacheListener object
    void
    handleDispose(String cacheName)
    Notifies the subscribers for freeing up the named cache.
    void
    Notifies the subscribers for a cache entry update.
    void
    handleRemove(String cacheName, K key)
    Notifies the subscribers for a cache entry removal.
    void
    Notifies the subscribers for a cache remove-all.
    void
    setListenerId(long id)
    sets unique identifier of listener home