Package | Description |
---|---|
javax.cache | |
javax.cache.event | |
org.wso2.carbon.caching.impl |
Modifier and Type | Method and Description |
---|---|
boolean |
Cache.registerCacheEntryListener(CacheEntryListener<? super K,? super V> cacheEntryListener)
Adds a listener to the notification service.
|
CacheBuilder<K,V> |
CacheBuilder.registerCacheEntryListener(CacheEntryListener<K,V> cacheEntryListener)
Registers a listener.
|
boolean |
Cache.unregisterCacheEntryListener(CacheEntryListener<?,?> cacheEntryListener)
Removes a call back listener.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CacheEntryCreatedListener<K,V>
Invoked if a cache entry is created,
for example through a
Cache.put(Object, Object) operation or the action of a CacheLoader . |
interface |
CacheEntryExpiredListener<K,V>
Invoked if a cache entry is evicted because of expiration.
|
interface |
CacheEntryReadListener<K,V>
Invoked if a cache entry is read,
for example through a
Cache.get(Object) call. |
interface |
CacheEntryRemovedListener<K,V>
Invoked if a cache entry is removed,
for example through a
Cache.remove(Object) call. |
interface |
CacheEntryUpdatedListener<K,V>
Invoked if an existing cache entry is updated, for example through a
Cache.put(Object, Object) or a CacheLoader operation . |
Modifier and Type | Method and Description |
---|---|
boolean |
CacheImpl.registerCacheEntryListener(CacheEntryListener<? super K,? super V> cacheEntryListener) |
CacheBuilder<K,V> |
CacheBuilderImpl.registerCacheEntryListener(CacheEntryListener<K,V> cacheEntryListener) |
boolean |
CacheImpl.unregisterCacheEntryListener(CacheEntryListener<?,?> cacheEntryListener) |
Copyright © 2015 WSO2 Inc. All rights reserved.