public class InvalidateCommand extends RemoveCommand
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
protected Object[] |
keys |
notifier, valuekeyflags| Constructor and Description |
|---|
InvalidateCommand() |
InvalidateCommand(CacheNotifier notifier,
Collection<Object> keys) |
InvalidateCommand(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 |
getKey() |
Object[] |
getKeys() |
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
int |
hashCode() |
boolean |
ignoreCommandOnStatus(ComponentStatus status)
Similar to
VisitableCommand.shouldInvoke(InvocationContext) but evaluated by InvocationContextInterceptor. |
protected void |
invalidate(InvocationContext ctx,
Object keyToInvalidate) |
protected void |
notify(InvocationContext ctx,
Object value,
boolean isPre) |
Object |
perform(InvocationContext ctx)
Performs an invalidation on a specified entry
|
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
String |
toString() |
init, isConditional, isNonExistent, isSuccessfulgetAffectedKeys, isReturnValueExpectedsetKey, shouldInvokegetFlags, hasFlag, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFlags, hasFlag, setFlagsshouldInvokepublic static final int COMMAND_ID
protected Object[] keys
public InvalidateCommand()
public InvalidateCommand(CacheNotifier notifier, Object... keys)
public InvalidateCommand(CacheNotifier notifier, Collection<Object> keys)
public Object perform(InvocationContext ctx) throws Throwable
perform in interface ReplicableCommandperform in class RemoveCommandctx - invocation contextThrowable - in the event of problems.protected void invalidate(InvocationContext ctx, Object keyToInvalidate) throws Throwable
Throwableprotected void notify(InvocationContext ctx, Object value, boolean isPre)
notify in class RemoveCommandpublic byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class RemoveCommandpublic String toString()
toString in class RemoveCommandpublic Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandgetParameters in class RemoveCommandpublic void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandsetParameters in class RemoveCommandcommandId - 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 RemoveCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic Object getKey()
getKey in interface DataCommandgetKey in class AbstractDataCommandpublic Object[] getKeys()
public boolean ignoreCommandOnStatus(ComponentStatus status)
VisitableCommandVisitableCommand.shouldInvoke(InvocationContext) but evaluated by InvocationContextInterceptor.
Commands can opt to be discarded in case the cache status is not suited (as InvalidateCommand)ignoreCommandOnStatus in interface VisitableCommandignoreCommandOnStatus in class RemoveCommandpublic boolean equals(Object o)
equals in class RemoveCommandpublic int hashCode()
hashCode in class RemoveCommandCopyright © 2012 JBoss by Red Hat. All Rights Reserved.