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
-
Method Summary
Modifier and TypeMethodDescriptionlong
protected final boolean
hasSameFlags
(FlagAffectedCommand other) protected final String
void
setFlagsBitSet
(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, logThrowable, readFrom, setOrigin, writeTo
Methods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, init, loadType
-
Constructor Details
-
AbstractFlagAffectedCommand
public AbstractFlagAffectedCommand()
-
-
Method Details
-
getFlagsBitSet
public long getFlagsBitSet()- Specified by:
getFlagsBitSet
in 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:FlagAffectedCommand
Set the flags, replacing any existing flags.- Specified by:
setFlagsBitSet
in interfaceFlagAffectedCommand
-
hasSameFlags
-
printFlags
-