public class EvictCommand extends RemoveCommand implements LocalCommand
COMMAND_ID, notifier, value, valueEquivalence, valueMatchercommandInvocationIdkeyflags| 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, writeTocanBlock, getAffectedKeys, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisitiongetKey, setKey, shouldInvokegetMetadata, getTopologyId, setMetadata, setTopologyIdgetFlags, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitisWriteOnlyalwaysReadsExistingValues, shouldInvokegetTopologyId, setTopologyIdgetParameters, setParametersgetMetadata, setMetadataaddFlag, addFlags, getFlags, hasFlag, setFlags, setFlagsgetKeypublic EvictCommand(Object key, CacheNotifier notifier, Set<Flag> flags, CommandInvocationId commandInvocationId, InternalEntryFactory factory)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandacceptVisitor in class RemoveCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic Object perform(InvocationContext ctx) throws Throwable
ReplicableCommandperform in interface ReplicableCommandperform in class RemoveCommandctx - invocation contextThrowable - in the event of problems.public void notify(InvocationContext ctx, Object value, Metadata previousMetadata, boolean isPre)
notify in class RemoveCommandpublic byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class RemoveCommandpublic String toString()
toString in class RemoveCommandpublic boolean readsExistingValues()
readsExistingValues in interface VisitableCommandreadsExistingValues in class RemoveCommandtrue if the command needs to read the previous values of the keys it acts on.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.