Package org.cache2k
Interface CacheOperationCompletionListener
-
- All Superinterfaces:
EventListener
@Deprecated public interface CacheOperationCompletionListener extends EventListener
Deprecated.to be removed in 2.2A listener implemented by the cache client to get notification about the completion of a load or prefetch operation.- Author:
- Jens Wilke
- See Also:
Cache.loadAll(Iterable, CacheOperationCompletionListener)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidonCompleted()Deprecated.Signals the completion of aCache.loadAll(java.lang.Iterable<? extends K>, org.cache2k.CacheOperationCompletionListener),Cache.reloadAll(java.lang.Iterable<? extends K>, org.cache2k.CacheOperationCompletionListener)orCache#prefetchAlloperation.voidonException(Throwable exception)Deprecated.The operation could not completed, because of an error.
-
-
-
Method Detail
-
onCompleted
void onCompleted()
Deprecated.Signals the completion of aCache.loadAll(java.lang.Iterable<? extends K>, org.cache2k.CacheOperationCompletionListener),Cache.reloadAll(java.lang.Iterable<? extends K>, org.cache2k.CacheOperationCompletionListener)orCache#prefetchAlloperation.
-
onException
void onException(Throwable exception)
Deprecated.The operation could not completed, because of an error.In the current implementation, there is no condition which raises a call to this method. Errors while loading a value, will be delayed and propagated when the respective key is accessed. This is subject to the resilience configuration.
-
-