use of org.infinispan.commands.topology.RebalancePolicyUpdateCommand in project infinispan by infinispan.
the class LocalCacheStatus method setCacheRebalancingEnabled.
@Override
public void setCacheRebalancingEnabled(String cacheName, boolean enabled) {
ReplicableCommand command = new RebalancePolicyUpdateCommand(cacheName, enabled);
CompletionStages.join(helper.executeOnClusterSync(transport, command, getGlobalTimeout(), VoidResponseCollector.ignoreLeavers()));
}
Aggregations