public interface CacheCoherence
Coherent caches
created using CacheManager.createCoherentCache(String)
will notify
an instace which is registered
for this interface once a key needs to be
removed or if the cache is entirely cleared.
The coherence implementation must broadcast this information to all nodes of a cluster and call
CacheManager.clearCoherentCacheLocally(String)
or
CacheManager.removeCoherentCacheKeyLocally(String, String)
locally on each node.
Modifier and Type | Method and Description |
---|---|
void |
clear(Cache<String,?> cache)
Notifies the coherence manager that the given cache needs to be cleared on all nodes, including the calling one.
|
void |
removeKey(Cache<String,?> cache,
String key)
Notifies the coherence manager that the given key from the given cache needs to be removed on all nodes,
including the calling one.
|
Copyright © 2019. All rights reserved.