Search in sources :

Example 1 with CacheAvailabilityUpdateCommand

use of org.infinispan.commands.topology.CacheAvailabilityUpdateCommand in project infinispan by infinispan.

the class LocalCacheStatus method setCacheAvailability.

@Override
public void setCacheAvailability(String cacheName, AvailabilityMode availabilityMode) {
    ReplicableCommand command = new CacheAvailabilityUpdateCommand(cacheName, availabilityMode);
    CompletionStages.join(helper.executeOnCoordinator(transport, command, getGlobalTimeout()));
}
Also used : ReplicableCommand(org.infinispan.commands.ReplicableCommand) CacheAvailabilityUpdateCommand(org.infinispan.commands.topology.CacheAvailabilityUpdateCommand)

Aggregations

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