javax.cache.event
Interface CacheEntryListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
CacheEntryCreatedListener<K,V>, CacheEntryExpiredListener<K,V>, CacheEntryReadListener<K,V>, CacheEntryRemovedListener<K,V>, CacheEntryUpdatedListener<K,V>

public interface CacheEntryListener
extends EventListener

Tagging interface for cache entry listeners.

Sub-interfaces exist for the various cache events allowing a listener to be created which implements only those listeners it is interested in.

The motivation for this design is to allow efficient implementation of network based listenrs.

Listeners should be implemented with care. In particular it is important to consider the impact on perforamnce and latency.

Since:
1.7
Author:
Yannis Cosmadopoulos, Greg Luck
See Also:
CacheEntryCreatedListener, CacheEntryUpdatedListener, CacheEntryReadListener, CacheEntryRemovedListener, CacheEntryExpiredListener

Method Summary
 NotificationScope getNotificationScope()
           
 

Method Detail

getNotificationScope

NotificationScope getNotificationScope()
Returns:
the notification scope for this listener


Copyright © 2011. All Rights Reserved.