Package org.infinispan.commands
Class AbstractFlagAffectedCommand
java.lang.Object
org.infinispan.commands.AbstractFlagAffectedCommand
- All Implemented Interfaces:
FlagAffectedCommand,ReplicableCommand,VisitableCommand
- Direct Known Subclasses:
AbstractTopologyAffectedCommand
Base class for those commands that can carry flags.
- Since:
- 5.1
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongprotected final booleanhasSameFlags(FlagAffectedCommand other) protected final StringvoidsetFlagsBitSet(long bitSet) Set the flags, replacing any existing flags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commands.FlagAffectedCommand
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlagsMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, logThrowable, readFrom, setOrigin, writeToMethods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, init, loadType
-
Constructor Details
-
AbstractFlagAffectedCommand
public AbstractFlagAffectedCommand()
-
-
Method Details
-
getFlagsBitSet
public long getFlagsBitSet()- Specified by:
getFlagsBitSetin interfaceFlagAffectedCommand- Returns:
- The command flags. Flags can be modified with
FlagAffectedCommand.setFlagsBitSet(long),FlagAffectedCommand.addFlags(long)andFlagAffectedCommand.addFlags(Set)methods.
-
setFlagsBitSet
public void setFlagsBitSet(long bitSet) Description copied from interface:FlagAffectedCommandSet the flags, replacing any existing flags.- Specified by:
setFlagsBitSetin interfaceFlagAffectedCommand
-
hasSameFlags
-
printFlags
-