public class InvalidateL1Command extends InvalidateCommand
VisitableCommand.LoadType| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
commandInvocationId, keys| Constructor and Description |
|---|
InvalidateL1Command() |
InvalidateL1Command(Address writeOrigin,
long flagsBitSet,
Collection<Object> keys,
CommandInvocationId commandInvocationId) |
InvalidateL1Command(long flagsBitSet,
Collection<Object> keys,
CommandInvocationId commandInvocationId) |
InvalidateL1Command(long flagsBitSet,
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<?> |
getKeysToLock()
It returns a
Collection with the keys to be lock. |
boolean |
isCausedByALocalWrite(Address address)
Returns true if the write that caused the invalidation was performed on this node.
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setKeys(Object[] keys) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
equals, fail, getAffectedKeys, getCommandInvocationId, getInternalMetadata, getKeyLockOwner, getKeys, getValueMatcher, hashCode, hasSkipLocking, hasZeroLockAcquisition, isConditional, isReturnValueExpected, isSuccessful, loadType, setInternalMetadata, setValueMatchergetTopologyId, setTopologyIdgetFlagsBitSet, hasSameFlags, printFlags, setFlagsBitSetclone, finalize, getClass, notify, notifyAll, wait, wait, waitisWriteOnly, updateStatusFromRemoteResponseaddFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSetinitcanBlock, invoke, invokeAsync, setOrigingetTopologyId, setTopologyIdpublic static final int COMMAND_ID
public InvalidateL1Command()
public InvalidateL1Command(long flagsBitSet,
CommandInvocationId commandInvocationId,
Object... keys)
public InvalidateL1Command(long flagsBitSet,
Collection<Object> keys,
CommandInvocationId commandInvocationId)
public InvalidateL1Command(Address writeOrigin, long flagsBitSet, Collection<Object> keys, CommandInvocationId commandInvocationId)
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class InvalidateCommandpublic void setKeys(Object[] keys)
public Collection<?> 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 © 2022 JBoss by Red Hat. All rights reserved.