public class EvictCommand extends RemoveCommand implements LocalCommand
COMMAND_ID, notifier, value, valueEquivalence, valueMatcher
commandInvocationId
key
flags
Constructor and Description |
---|
EvictCommand(Object key,
CacheNotifier notifier,
Set<Flag> flags,
CommandInvocationId commandInvocationId,
InternalEntryFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
void |
notify(InvocationContext ctx,
Object value,
Metadata previousMetadata,
boolean isPre) |
Object |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
boolean |
readsExistingValues() |
String |
toString() |
equals, getValue, getValueMatcher, hashCode, ignoreCommandOnStatus, init, isConditional, isNonExistent, isReturnValueExpected, isSuccessful, performRemove, readFrom, setValue, setValueMatcher, updateStatusFromRemoteResponse, writeTo
canBlock, getAffectedKeys, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisition
getKey, setKey, shouldInvoke
getMetadata, getTopologyId, setMetadata, setTopologyId
getFlags, setFlags
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isWriteOnly
alwaysReadsExistingValues, shouldInvoke
getTopologyId, setTopologyId
getParameters, setParameters
getMetadata, setMetadata
addFlag, addFlags, getFlags, hasFlag, setFlags, setFlags
getKey
public EvictCommand(Object key, CacheNotifier notifier, Set<Flag> flags, CommandInvocationId commandInvocationId, InternalEntryFactory factory)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
acceptVisitor
in interface VisitableCommand
acceptVisitor
in class RemoveCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic Object perform(InvocationContext ctx) throws Throwable
ReplicableCommand
perform
in interface ReplicableCommand
perform
in class RemoveCommand
ctx
- invocation contextThrowable
- in the event of problems.public void notify(InvocationContext ctx, Object value, Metadata previousMetadata, boolean isPre)
notify
in class RemoveCommand
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class RemoveCommand
public String toString()
toString
in class RemoveCommand
public boolean readsExistingValues()
readsExistingValues
in interface VisitableCommand
readsExistingValues
in class RemoveCommand
true
if the command needs to read the previous values of the keys it acts on.Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.