org.infinispan.security.actions.SetCacheAvailabilityAction Maven / Gradle / Ivy
package org.infinispan.security.actions;
import org.infinispan.AdvancedCache;
import org.infinispan.partitionhandling.AvailabilityMode;
/**
* SetCacheAvailabilityAction.
*
* @author Dan Berindei
* @since 7.0
*/
public class SetCacheAvailabilityAction extends AbstractAdvancedCacheAction {
private AvailabilityMode availabilityMode;
public SetCacheAvailabilityAction(AdvancedCache, ?> cache, AvailabilityMode availabilityMode) {
super(cache);
this.availabilityMode = availabilityMode;
}
@Override
public Void run() {
cache.setAvailability(availabilityMode);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy