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() {
|
||||||
|
RpcManager rpcManager = cache.getRpcManager();
|
||||||
|
if (rpcManager != null) {
|
||||||
|
// Only broadcast evict all if it's clustered
|
||||||
EvictAllCommand cmd = cacheCmdInitializer.buildEvictAllCommand(cache.getName());
|
EvictAllCommand cmd = cacheCmdInitializer.buildEvictAllCommand(cache.getName());
|
||||||
cache.getRpcManager().broadcastRpcCommand(cmd, isSync);
|
rpcManager.broadcastRpcCommand(cmd, isSync);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue