HHH-9999 Fix use of deprecated API

This fixes compatibility with Infinispan 8.0
This commit is contained in:
Paul Ferraro 2015-07-29 16:06:44 -04:00
parent ae8078499b
commit 60c109c1a4
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import org.infinispan.AdvancedCache;
import org.infinispan.commons.util.CloseableIterator; import org.infinispan.commons.util.CloseableIterator;
import org.infinispan.context.Flag; import org.infinispan.context.Flag;
import org.infinispan.remoting.rpc.RpcManager; import org.infinispan.remoting.rpc.RpcManager;
import org.infinispan.remoting.rpc.RpcOptions;
/** /**
* Helper for dealing with Infinispan cache instances. * Helper for dealing with Infinispan cache instances.
@ -216,7 +217,8 @@ public class Caches {
final boolean isSync = isSynchronousCache( cache ); final boolean isSync = isSynchronousCache( cache );
final EvictAllCommand cmd = factory.buildEvictAllCommand( cache.getName() ); final EvictAllCommand cmd = factory.buildEvictAllCommand( cache.getName() );
rpcManager.broadcastRpcCommand( cmd, isSync ); final RpcOptions options = rpcManager.getDefaultRpcOptions( isSync );
rpcManager.invokeRemotely( null, cmd, options );
} }
} }