public class InvalidateL1Command extends InvalidateCommand
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
keysnotifier, valuekeyflags| Constructor and Description |
|---|
InvalidateL1Command() |
InvalidateL1Command(Address writeOrigin,
boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Collection<Object> keys) |
InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Collection<Object> keys) |
InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
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, notifyinit, isConditional, isNonExistent, isSuccessfulgetAffectedKeys, isReturnValueExpectedsetKeygetFlags, hasFlag, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFlags, hasFlag, setFlagspublic static final int COMMAND_ID
public InvalidateL1Command()
public InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Object... keys)
public InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Collection<Object> keys)
public InvalidateL1Command(Address writeOrigin, boolean forRehash, DataContainer dc, Configuration config, DistributionManager dm, CacheNotifier notifier, Collection<Object> keys)
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 boolean equals(Object o)
equals in class InvalidateCommandpublic Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandgetParameters in class InvalidateCommandpublic void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandsetParameters in class InvalidateCommandcommandId - 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
VisitableCommandacceptVisitor in interface VisitableCommandacceptVisitor in class InvalidateCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic int hashCode()
hashCode in class InvalidateCommandpublic String toString()
toString in class InvalidateCommandpublic boolean isCausedByALocalWrite(Address address)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.