HHH-1706 Support evictAll for LOCAL second level cache environments
This commit is contained in:
parent
2b356317ce
commit
5eee526234
|
@ -219,8 +219,12 @@ public class CacheAdapterImpl implements CacheAdapter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void broadcastEvictAll() {
|
public void broadcastEvictAll() {
|
||||||
EvictAllCommand cmd = cacheCmdInitializer.buildEvictAllCommand(cache.getName());
|
RpcManager rpcManager = cache.getRpcManager();
|
||||||
cache.getRpcManager().broadcastRpcCommand(cmd, isSync);
|
if (rpcManager != null) {
|
||||||
|
// Only broadcast evict all if it's clustered
|
||||||
|
EvictAllCommand cmd = cacheCmdInitializer.buildEvictAllCommand(cache.getName());
|
||||||
|
rpcManager.broadcastRpcCommand(cmd, isSync);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue