| Package | Description |
|---|---|
| javax.cache |
This package contains the API for JCache.
|
| javax.cache.event |
This package contains event listener interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
MutableConfiguration<K,V> |
MutableConfiguration.registerCacheEntryListener(CacheEntryListener<? super K,? super V> cacheEntryListener,
boolean requireOldValue,
CacheEntryEventFilter<? super K,? super V> cacheEntryEventFilter,
boolean synchronous)
Add a
CacheEntryListener. |
boolean |
Cache.registerCacheEntryListener(CacheEntryListener<? super K,? super V> cacheEntryListener,
boolean requireOldValue,
CacheEntryEventFilter<? super K,? super V> cacheEntryFilter,
boolean synchronous)
Adds a listener to the notification service.
|
boolean |
Cache.unregisterCacheEntryListener(CacheEntryListener<?,?> cacheEntryListener)
Removes a call back listener.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CacheEntryCreatedListener<K,V>
Invoked after a cache entry is created, or if a batch call is made, after the entries are created.
|
interface |
CacheEntryExpiredListener<K,V>
Invoked if a cache entry or entries are evicted due to expiration.
|
interface |
CacheEntryRemovedListener<K,V>
Invoked if a cache entry is removed, or if a batch call is made, after the entries are removed.
|
interface |
CacheEntryUpdatedListener<K,V>
Invoked if an existing cache entry is updated, or if a batch call is made, after the entries are updated.
|
| Modifier and Type | Method and Description |
|---|---|
CacheEntryListener<? super K,? super V> |
CacheEntryListenerRegistration.getCacheEntryListener()
Gets the
CacheEntryListener. |
Copyright © 2013. All Rights Reserved.