Package org.infinispan.commands.write
Class ApplyDeltaCommand
- java.lang.Object
-
- org.infinispan.commands.read.AbstractDataCommand
-
- org.infinispan.commands.write.AbstractDataWriteCommand
-
- org.infinispan.commands.write.ApplyDeltaCommand
-
- All Implemented Interfaces:
DataCommand
,FlagAffectedCommand
,ReplicableCommand
,SegmentSpecificCommand
,TopologyAffectedCommand
,VisitableCommand
,DataWriteCommand
,WriteCommand
,RemoteLockCommand
@Deprecated public class ApplyDeltaCommand extends AbstractDataWriteCommand
Deprecated.since 9.1This class can no longer be used. Any attempts to use it internally will lead to aUnsupportedOperationException
being thrown.- Since:
- 5.1
- Author:
- Vladimir Blagojevic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMMAND_ID
Deprecated.-
Fields inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
commandInvocationId
-
Fields inherited from class org.infinispan.commands.read.AbstractDataCommand
key, segment
-
-
Constructor Summary
Constructors Constructor Description ApplyDeltaCommand()
Deprecated.ApplyDeltaCommand(Object deltaAwareValueKey, Delta delta, Collection<Object> keys, CommandInvocationId commandInvocationId)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
acceptVisitor(InvocationContext ctx, Visitor visitor)
Deprecated.Accept a visitor, and return the result of accepting this visitor.void
fail()
Deprecated.Make subsequent invocations ofWriteCommand.isSuccessful()
returnfalse
.byte
getCommandId()
Deprecated.Used by marshallers to convert this command into an id for streaming.Object[]
getCompositeKeys()
Deprecated.Delta
getDelta()
Deprecated.Object[]
getKeys()
Deprecated.ValueMatcher
getValueMatcher()
Deprecated.boolean
isConditional()
Deprecated.Certain commands only work based on a certain condition or state of the cache.boolean
isSuccessful()
Deprecated.Some commands may want to provide information on whether the command was successful or not.VisitableCommand.LoadType
loadType()
Deprecated.Object
perform(InvocationContext ctx)
Deprecated.Performs an application of delta on a specified entryvoid
readFrom(ObjectInput input)
Deprecated.Reads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput)
.void
setValueMatcher(ValueMatcher valueMatcher)
Deprecated.String
toString()
Deprecated.void
writeTo(ObjectOutput output)
Deprecated.Writes this instance to theObjectOutput
.-
Methods inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
canBlock, getAffectedKeys, getCommandInvocationId, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisition, isReturnValueExpected
-
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand
equals, getFlagsBitSet, getKey, getSegment, getTopologyId, hashCode, 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.FlagAffectedCommand
addFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSet
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
invoke, invokeAsync, 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
ignoreCommandOnStatus, shouldInvoke
-
Methods inherited from interface org.infinispan.commands.write.WriteCommand
isWriteOnly, updateStatusFromRemoteResponse
-
-
-
-
Field Detail
-
COMMAND_ID
public static final int COMMAND_ID
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplyDeltaCommand
public ApplyDeltaCommand()
Deprecated.
-
ApplyDeltaCommand
public ApplyDeltaCommand(Object deltaAwareValueKey, Delta delta, Collection<Object> keys, CommandInvocationId commandInvocationId)
Deprecated.
-
-
Method Detail
-
getDelta
public Delta getDelta()
Deprecated.
-
perform
public Object perform(InvocationContext ctx) throws Throwable
Deprecated.Performs an application of delta on a specified entry- Parameters:
ctx
- invocation context- Returns:
- null
- Throws:
Throwable
- in the event of problems.
-
getCommandId
public byte getCommandId()
Deprecated.Description copied from interface:ReplicableCommand
Used by marshallers to convert this command into an id for streaming.- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classAbstractDataCommand
-
writeTo
public void writeTo(ObjectOutput output) throws IOException
Deprecated.Description copied from interface:ReplicableCommand
Writes this instance to theObjectOutput
.- Parameters:
output
- the stream.- Throws:
IOException
- if an error occurred during the I/O.
-
readFrom
public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
Deprecated.Description copied from interface:ReplicableCommand
Reads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput)
.- Parameters:
input
- the stream to read.- Throws:
IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.
-
acceptVisitor
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
Deprecated.Description copied from interface:VisitableCommand
Accept a visitor, and return the result of accepting this visitor.- Parameters:
ctx
- invocation contextvisitor
- visitor to accept- Returns:
- arbitrary return value
- Throws:
Throwable
- in the event of problems
-
getKeys
public Object[] getKeys()
Deprecated.
-
getCompositeKeys
public Object[] getCompositeKeys()
Deprecated.
-
loadType
public VisitableCommand.LoadType loadType()
Deprecated.- Returns:
- Nodes on which the command needs to read the previous values of the keys it acts on.
-
isSuccessful
public boolean isSuccessful()
Deprecated.Description copied from interface:WriteCommand
Some commands may want to provide information on whether the command was successful or not. This is different from a failure, which usually would result in an exception being thrown. An example is a putIfAbsent() not doing anything because the key in question was present. This would result in a isSuccessful() call returning false.- Returns:
- true if the command completed successfully, false otherwise.
-
isConditional
public boolean isConditional()
Deprecated.Description copied from interface:WriteCommand
Certain commands only work based on a certain condition or state of the cache. For example,ConcurrentMap.putIfAbsent(Object, Object)
only does anything if a condition is met, i.e., the entry in question is not already present. This method tests whether the command in question is conditional or not.- Returns:
- true if the command is conditional, false otherwise
-
getValueMatcher
public ValueMatcher getValueMatcher()
Deprecated.- Returns:
- The current value matching policy.
-
setValueMatcher
public void setValueMatcher(ValueMatcher valueMatcher)
Deprecated.- Parameters:
valueMatcher
- The new value matching policy.
-
fail
public void fail()
Deprecated.Description copied from interface:WriteCommand
Make subsequent invocations ofWriteCommand.isSuccessful()
returnfalse
.
-
-