Package org.infinispan.commands
Class AbstractFlagAffectedCommand
- java.lang.Object
-
- org.infinispan.commands.AbstractFlagAffectedCommand
-
- All Implemented Interfaces:
FlagAffectedCommand,ReplicableCommand,VisitableCommand
- Direct Known Subclasses:
AbstractTopologyAffectedCommand
public abstract class AbstractFlagAffectedCommand extends Object implements FlagAffectedCommand
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 Constructor Description AbstractFlagAffectedCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFlagsBitSet()protected booleanhasSameFlags(FlagAffectedCommand other)protected StringprintFlags()voidsetFlagsBitSet(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, wait
-
Methods inherited from interface org.infinispan.commands.FlagAffectedCommand
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, readFrom, setOrigin, writeTo
-
Methods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, ignoreCommandOnStatus, loadType, perform, shouldInvoke
-
-
-
-
Method Detail
-
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
protected final boolean hasSameFlags(FlagAffectedCommand other)
-
printFlags
protected final String printFlags()
-
-