Class AbstractFlagAffectedCommand
java.lang.Object
org.infinispan.commands.AbstractFlagAffectedCommand
- All Implemented Interfaces:
FlagAffectedCommand,org.infinispan.commands.remote.CacheRpcCommand,ReplicableCommand,TracedCommand,VisitableCommand,VersionAware
- Direct Known Subclasses:
AbstractTopologyAffectedCommand
public abstract class AbstractFlagAffectedCommand
extends Object
implements org.infinispan.commands.remote.CacheRpcCommand, 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteStringprotected longprotected Addressprotected InfinispanSpanAttributesFields inherited from interface org.infinispan.commands.VisitableCommand
log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFlagAffectedCommand(long flags) AbstractFlagAffectedCommand(ByteString cacheName, long flags) -
Method Summary
Modifier and TypeMethodDescriptionlonglongprotected final booleanhasSameFlags(FlagAffectedCommand other) protected final StringvoidsetFlagsBitSet(long bitSet) Set the flags, replacing any existing flags.voidSets the sender'sAddress.voidsetSpanAttributes(InfinispanSpanAttributes attributes) 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
addFlags, getFlags, hasAllFlags, hasAnyFlagMethods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, isReturnValueExpected, isSuccessful, logThrowable, readFrom, supportedSince, writeToMethods inherited from interface org.infinispan.commands.TracedCommand
getOperationNameMethods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, init, invokeAsync, loadType
-
Field Details
-
cacheName
-
origin
-
flags
protected long flags -
spanAttributes
-
-
Constructor Details
-
AbstractFlagAffectedCommand
protected AbstractFlagAffectedCommand(long flags) -
AbstractFlagAffectedCommand
-
-
Method Details
-
getCacheName
-
getFlagsWithoutRemote
@ProtoField(number=2, name="flags") public long getFlagsWithoutRemote() -
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(long)methods.
-
setFlagsBitSet
public void setFlagsBitSet(long bitSet) Description copied from interface:FlagAffectedCommandSet the flags, replacing any existing flags.- Specified by:
setFlagsBitSetin interfaceFlagAffectedCommand
-
hasSameFlags
-
printFlags
-
getOrigin
-
setOrigin
Description copied from interface:ReplicableCommandSets the sender'sAddress.By default, it doesn't set anything. Implement this method if the sender's
Addressis needed.- Specified by:
setOriginin interfaceReplicableCommand- Parameters:
origin- the sender'sAddress
-
setSpanAttributes
- Specified by:
setSpanAttributesin interfaceTracedCommand
-
getSpanAttributes
- Specified by:
getSpanAttributesin interfaceTracedCommand
-