Package org.infinispan.commands.write
Class EvictCommand
java.lang.Object
org.infinispan.commands.read.AbstractDataCommand
org.infinispan.commands.write.AbstractDataWriteCommand
org.infinispan.commands.write.RemoveCommand
org.infinispan.commands.write.EvictCommand
- All Implemented Interfaces:
DataCommand,FlagAffectedCommand,LocalCommand,MetadataAwareCommand,ReplicableCommand,SegmentSpecificCommand,TopologyAffectedCommand,TracedCommand,VisitableCommand,DataWriteCommand,WriteCommand,RemoteLockCommand
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType -
Field Summary
Fields inherited from class org.infinispan.commands.write.RemoveCommand
COMMAND_ID, metadata, successful, value, valueMatcherFields inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
commandInvocationIdFields inherited from class org.infinispan.commands.read.AbstractDataCommand
key, segment -
Constructor Summary
ConstructorsConstructorDescriptionEvictCommand(Object key, int segment, long flagsBitSet, CommandInvocationId commandInvocationId) -
Method Summary
Modifier and TypeMethodDescriptionacceptVisitor(InvocationContext ctx, Visitor visitor) Accept a visitor, and return the result of accepting this visitor.byteUsed by marshallers to convert this command into an id for streaming.loadType()toString()Methods inherited from class org.infinispan.commands.write.RemoveCommand
equals, fail, getInternalMetadata, getMetadata, getValue, getValueMatcher, hashCode, isConditional, isNonExistent, isReturnEntryNecessary, isReturnValueExpected, isSuccessful, nonExistant, readFrom, setInternalMetadata, setMetadata, setValue, setValueMatcher, shouldReplicate, writeToMethods inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
getAffectedKeys, getCommandInvocationId, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisitionMethods inherited from class org.infinispan.commands.read.AbstractDataCommand
getFlagsBitSet, getKey, getSegment, getTopologyId, printFlags, setFlagsBitSet, setKey, setTopologyIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.commands.DataCommand
getKeyMethods inherited from interface org.infinispan.commands.write.DataWriteCommand
getInternalMetadata, setInternalMetadataMethods inherited from interface org.infinispan.commands.FlagAffectedCommand
addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, setFlagsBitSetMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, logThrowable, setOriginMethods inherited from interface org.infinispan.commands.SegmentSpecificCommand
getSegmentMethods inherited from interface org.infinispan.commands.TopologyAffectedCommand
getTopologyId, setTopologyIdMethods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributesMethods inherited from interface org.infinispan.commands.VisitableCommand
initMethods inherited from interface org.infinispan.commands.write.WriteCommand
isWriteOnly
-
Constructor Details
-
EvictCommand
public EvictCommand(Object key, int segment, long flagsBitSet, CommandInvocationId commandInvocationId)
-
-
Method Details
-
acceptVisitor
Description copied from interface:VisitableCommandAccept a visitor, and return the result of accepting this visitor.- Specified by:
acceptVisitorin interfaceVisitableCommand- Overrides:
acceptVisitorin classRemoveCommand- Parameters:
ctx- invocation contextvisitor- visitor to accept- Returns:
- arbitrary return value
- Throws:
Throwable- in the event of problems
-
getCommandId
public byte getCommandId()Description copied from interface:ReplicableCommandUsed by marshallers to convert this command into an id for streaming.- Specified by:
getCommandIdin interfaceReplicableCommand- Overrides:
getCommandIdin classRemoveCommand- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
toString
- Overrides:
toStringin classRemoveCommand
-
loadType
- Specified by:
loadTypein interfaceVisitableCommand- Overrides:
loadTypein classRemoveCommand- Returns:
- Nodes on which the command needs to read the previous values of the keys it acts on.
-