File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 14
14
import org .infinispan .commons .util .CloseableIterator ;
15
15
import org .infinispan .context .Flag ;
16
16
import org .infinispan .remoting .rpc .RpcManager ;
17
+ import org .infinispan .remoting .rpc .RpcOptions ;
17
18
18
19
/**
19
20
* Helper for dealing with Infinispan cache instances.
@@ -216,7 +217,8 @@ public static void broadcastEvictAll(AdvancedCache cache) {
216
217
final boolean isSync = isSynchronousCache ( cache );
217
218
218
219
final EvictAllCommand cmd = factory .buildEvictAllCommand ( cache .getName () );
219
- rpcManager .broadcastRpcCommand ( cmd , isSync );
220
+ final RpcOptions options = rpcManager .getDefaultRpcOptions ( isSync );
221
+ rpcManager .invokeRemotely ( null , cmd , options );
220
222
}
221
223
}
222
224
You can’t perform that action at this time.
0 commit comments