Search in sources :

Example 1 with RebalancePolicyUpdateCommand

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()));
}
Also used : ReplicableCommand(org.infinispan.commands.ReplicableCommand) RebalancePolicyUpdateCommand(org.infinispan.commands.topology.RebalancePolicyUpdateCommand)

Aggregations

ReplicableCommand (org.infinispan.commands.ReplicableCommand)1 RebalancePolicyUpdateCommand (org.infinispan.commands.topology.RebalancePolicyUpdateCommand)1