Package org.cache2k.event
Interface CacheClosedListener
-
- All Superinterfaces:
CacheLifecycleListener,EventListener
public interface CacheClosedListener extends CacheLifecycleListener
Listener called when cache is closed. This is intended for resource cleanup of cache customizations.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Void>onCacheClosed(Cache<?,?> cache)Called when cache is closed.
-
-
-
Method Detail
-
onCacheClosed
CompletableFuture<Void> onCacheClosed(Cache<?,?> cache)
Called when cache is closed.- Parameters:
cache- The cache that is closed. The cache object can be used to retrieve the name and the associated manager. No operations are allowed.- Returns:
nullor a CompletableFuture, if this method uses async processing
-
-