Package org.cache2k.event
Interface CacheCreatedListener
-
- All Superinterfaces:
CacheLifecycleListener
,EventListener
public interface CacheCreatedListener extends CacheLifecycleListener
- Author:
- Jens Wilke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
CompletableFuture<Void>onCacheCreated(Cache<K,V> cache, CacheBuildContext<K,V> ctx)
A new cache has been created.
-
-
-
Method Detail
-
onCacheCreated
<K,V> CompletableFuture<Void> onCacheCreated(Cache<K,V> cache, CacheBuildContext<K,V> ctx)
A new cache has been created.- Parameters:
ctx
- The build context of the cache. The listener may read but not modify its configuration parameters.- Returns:
null
or a CompletableFuture, if this method uses async processing
-
-