public class InvalidateL1Command extends InvalidateCommand
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
keysnotifier, value, valueEquivalence, valueMatchercommandInvocationIdkeyflags| Constructor and Description |
|---|
InvalidateL1Command() |
InvalidateL1Command(Address writeOrigin,
DataContainer dc,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
Collection<Object> keys,
CommandInvocationId commandInvocationId) |
InvalidateL1Command(DataContainer dc,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
Collection<Object> keys,
CommandInvocationId commandInvocationId) |
InvalidateL1Command(DataContainer dc,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
CommandInvocationId commandInvocationId,
Object... keys) |
| 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.
|
Collection<Object> |
getKeysToLock()
It returns a
Collection with the keys to be lock. |
void |
init(Configuration config,
DistributionManager dm,
CacheNotifier n,
DataContainer dc) |
boolean |
isCausedByALocalWrite(Address address)
Returns true if the write that caused the invalidation was performed on this node.
|
Object |
perform(InvocationContext ctx)
Performs an invalidation on a specified entry
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setKeys(Object[] keys) |
boolean |
shouldInvoke(InvocationContext ctx)
Used by the InboundInvocationHandler to determine whether the command should be invoked or not.
|
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
equals, getAffectedKeys, getKey, getKeys, hashCode, ignoreCommandOnStatus, invalidate, notify, readsExistingValuesgetValue, getValueMatcher, init, isConditional, isNonExistent, isReturnValueExpected, isSuccessful, performRemove, setValue, setValueMatcher, updateStatusFromRemoteResponsecanBlock, getKeyLockOwner, hasSkipLocking, hasZeroLockAcquisitionsetKeygetMetadata, getTopologyId, setMetadata, setTopologyIdgetFlags, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitisWriteOnlyalwaysReadsExistingValuesgetTopologyId, setTopologyIdgetParameters, setParametersgetMetadata, setMetadatapublic static final int COMMAND_ID
public InvalidateL1Command()
public InvalidateL1Command(DataContainer dc, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, CommandInvocationId commandInvocationId, Object... keys)
public InvalidateL1Command(DataContainer dc, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, Collection<Object> keys, CommandInvocationId commandInvocationId)
public InvalidateL1Command(Address writeOrigin, DataContainer dc, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, Collection<Object> keys, CommandInvocationId commandInvocationId)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class InvalidateCommandpublic void init(Configuration config, DistributionManager dm, CacheNotifier n, DataContainer dc)
public Object perform(InvocationContext ctx) throws Throwable
InvalidateCommandperform in interface ReplicableCommandperform in class InvalidateCommandctx - invocation contextThrowable - in the event of problems.public void setKeys(Object[] keys)
public boolean shouldInvoke(InvocationContext ctx)
VisitableCommandshouldInvoke in interface VisitableCommandshouldInvoke in class AbstractDataCommandpublic Collection<Object> getKeysToLock()
RemoteLockCommandCollection with the keys to be lock.
It may return an empty collection if no keys needs to be locked independently of the return value of RemoteLockCommand.hasSkipLocking(). It may contains duplicated keys and null is not a valid return value.
getKeysToLock in interface RemoteLockCommandgetKeysToLock in class InvalidateCommandCollection of keys to lock.public void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class InvalidateCommandoutput - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).readFrom in interface ReplicableCommandreadFrom in class InvalidateCommandinput - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandacceptVisitor in class InvalidateCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic String toString()
toString in class InvalidateCommandpublic boolean isCausedByALocalWrite(Address address)
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.