|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of keys maintained by the associated cacheV
- the type of values maintained by the associated cachepublic interface CacheEntryListener<K,V>
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. A listener is a user supplied object instance and therefore can only be registered programmatically. The listeners are fired:
CacheEntryCreatedListener
,
CacheEntryUpdatedListener
,
CacheEntryReadListener
,
CacheEntryRemovedListener
,
CacheEntryExpiredListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |