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
,VisitableCommand
,DataWriteCommand
,WriteCommand
,RemoteLockCommand
- Since:
- 4.0
- Author:
- [email protected]
-
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, valueMatcher
Fields inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
commandInvocationId
Fields 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.byte
Used 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, writeTo
Methods inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
getAffectedKeys, getCommandInvocationId, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisition
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand
getFlagsBitSet, getKey, getSegment, getTopologyId, printFlags, setFlagsBitSet, setKey, setTopologyId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.commands.DataCommand
getKey
Methods inherited from interface org.infinispan.commands.write.DataWriteCommand
getInternalMetadata, setInternalMetadata
Methods inherited from interface org.infinispan.commands.FlagAffectedCommand
addFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSet
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, logThrowable, setOrigin
Methods inherited from interface org.infinispan.commands.SegmentSpecificCommand
getSegment
Methods inherited from interface org.infinispan.commands.TopologyAffectedCommand
getTopologyId, setTopologyId
Methods inherited from interface org.infinispan.commands.VisitableCommand
init
Methods inherited from interface org.infinispan.commands.write.WriteCommand
isWriteOnly, updateStatusFromRemoteResponse
-
Constructor Details
-
EvictCommand
public EvictCommand(Object key, int segment, long flagsBitSet, CommandInvocationId commandInvocationId)
-
-
Method Details
-
acceptVisitor
Description copied from interface:VisitableCommand
Accept a visitor, and return the result of accepting this visitor.- Specified by:
acceptVisitor
in interfaceVisitableCommand
- Overrides:
acceptVisitor
in 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:ReplicableCommand
Used by marshallers to convert this command into an id for streaming.- Specified by:
getCommandId
in interfaceReplicableCommand
- Overrides:
getCommandId
in classRemoveCommand
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
toString
- Overrides:
toString
in classRemoveCommand
-
loadType
- Specified by:
loadType
in interfaceVisitableCommand
- Overrides:
loadType
in classRemoveCommand
- Returns:
- Nodes on which the command needs to read the previous values of the keys it acts on.
-