org.infinispan.commands.remote.LocalFlagAffectedRpcCommand Maven / Gradle / Ivy
package org.infinispan.commands.remote;
import java.util.Set;
import org.infinispan.commands.LocalFlagAffectedCommand;
import org.infinispan.context.Flag;
/**
* @author Radim Vansa <[email protected]>
*/
public abstract class LocalFlagAffectedRpcCommand extends BaseRpcCommand implements LocalFlagAffectedCommand {
protected Set flags;
protected LocalFlagAffectedRpcCommand(String cacheName, Set flags) {
super(cacheName);
this.flags = flags;
}
@Override
public Set getFlags() {
return flags;
}
@Override
public void setFlags(Set flags) {
this.flags = flags;
}
@Override
public boolean hasFlag(Flag flag) {
return flags != null && flags.contains(flag);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy