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, setValueMatcher
getTopologyId, setTopologyId
getFlagsBitSet, hasSameFlags, printFlags, setFlagsBitSet
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isWriteOnly, updateStatusFromRemoteResponse
addFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSet
init
canBlock, invoke, invokeAsync, setOrigin
getTopologyId, setTopologyId
public 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()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class InvalidateCommand
public void setKeys(Object[] keys)
public Collection<?> getKeysToLock()
RemoteLockCommand
Collection
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 RemoteLockCommand
getKeysToLock
in class InvalidateCommand
Collection
of keys to lock.public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
writeTo
in class InvalidateCommand
output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.readFrom
in interface ReplicableCommand
readFrom
in class InvalidateCommand
input
- 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
VisitableCommand
acceptVisitor
in interface VisitableCommand
acceptVisitor
in class InvalidateCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic String toString()
toString
in class InvalidateCommand
public boolean isCausedByALocalWrite(Address address)
Copyright © 2021 JBoss by Red Hat. All rights reserved.