public class InvalidateL1Command extends InvalidateCommand
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND_ID |
keys
notifier, value, valueMatcher
key
flags
Constructor and Description |
---|
InvalidateL1Command() |
InvalidateL1Command(Address writeOrigin,
boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
Collection<Object> keys) |
InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
Collection<Object> keys) |
InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Set<Flag> flags,
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.
|
boolean |
equals(Object o) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
int |
hashCode() |
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 |
setKeys(Object[] keys) |
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
boolean |
shouldInvoke(InvocationContext ctx)
Used by the InboundInvocationHandler to determine whether the command should be invoked or not.
|
String |
toString() |
getKey, getKeys, ignoreCommandOnStatus, invalidate, notify
getValue, getValueMatcher, init, isConditional, isNonExistent, isReturnValueExpected, isSuccessful, setValue, setValueMatcher, updateStatusFromRemoteResponse
canBlock, getAffectedKeys
setKey
getMetadata, getTopologyId, setMetadata, setTopologyId
getFlags, hasFlag, setFlags, setFlags
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTopologyId, setTopologyId
getMetadata, setMetadata
getFlags, hasFlag, setFlags, setFlags
public static final int COMMAND_ID
public InvalidateL1Command()
public InvalidateL1Command(boolean forRehash, DataContainer dc, Configuration config, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, Object... keys)
public InvalidateL1Command(boolean forRehash, DataContainer dc, Configuration config, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, Collection<Object> keys)
public InvalidateL1Command(Address writeOrigin, boolean forRehash, DataContainer dc, Configuration config, DistributionManager dm, CacheNotifier notifier, Set<Flag> flags, Collection<Object> keys)
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
getCommandId
in class InvalidateCommand
public void init(Configuration config, DistributionManager dm, CacheNotifier n, DataContainer dc)
public Object perform(InvocationContext ctx) throws Throwable
InvalidateCommand
perform
in interface ReplicableCommand
perform
in class InvalidateCommand
ctx
- invocation contextThrowable
- in the event of problems.public void setKeys(Object[] keys)
public boolean shouldInvoke(InvocationContext ctx)
VisitableCommand
shouldInvoke
in interface VisitableCommand
shouldInvoke
in class AbstractDataCommand
public boolean equals(Object o)
equals
in class InvalidateCommand
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
getParameters
in class InvalidateCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.setParameters
in interface ReplicableCommand
setParameters
in class InvalidateCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having
multiple IDs, such as PutKeyValueCommand
.args
- object array of argspublic 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 int hashCode()
hashCode
in class InvalidateCommand
public String toString()
toString
in class InvalidateCommand
public boolean isCausedByALocalWrite(Address address)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.