
org.infinispan.commands.write.InvalidateCommand Maven / Gradle / Ivy
package org.infinispan.commands.write;
import org.infinispan.commands.Visitor;
import org.infinispan.commons.util.Util;
import org.infinispan.context.Flag;
import org.infinispan.context.InvocationContext;
import org.infinispan.lifecycle.ComponentStatus;
import org.infinispan.notifications.cachelistener.CacheNotifier;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
import java.util.Arrays;
import java.util.Collection;
import java.util.Set;
/**
* Removes an entry from memory.
*
* @author [email protected]
* @since 4.0
*/
public class InvalidateCommand extends RemoveCommand {
public static final int COMMAND_ID = 6;
private static final Log log = LogFactory.getLog(InvalidateCommand.class);
private static final boolean trace = log.isTraceEnabled();
protected Object[] keys;
public InvalidateCommand() {
// The value matcher will always be the same, so we don't need to serialize it like we do for the other commands
this.valueMatcher = ValueMatcher.MATCH_ALWAYS;
}
public InvalidateCommand(CacheNotifier notifier, Set flags, Object... keys) {
//valueEquivalence can be null because this command never compares values.
super(null, null, notifier, flags, null);
this.keys = keys;
this.notifier = notifier;
}
public InvalidateCommand(CacheNotifier notifier, Set flags, Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy