public class InvalidateCommand extends AbstractDataCommand
| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_ID |
protected Notifier |
notifier |
protected CacheSPI |
spi |
dataContainer, fqn| Constructor and Description |
|---|
InvalidateCommand() |
InvalidateCommand(Fqn fqn) |
| Modifier and Type | Method and Description |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
protected NodeSPI |
enforceNodeLoading()
//TODO: 2.2.0: rather than using CacheSPI this should use peek().
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Object[] |
getParameters()
Basic versions of these methods
|
void |
initialize(CacheSPI cacheSpi,
DataContainer dataContainer,
Notifier notifier) |
protected void |
invalidateNode(NodeSPI node)
mark the node to be removed (and all children) as invalid so anyone holding a direct reference to it will
be aware that it is no longer valid.
|
Object |
perform(InvocationContext ctx)
Performs an invalidation on a specified node
|
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods
|
String |
toString() |
equals, getFqn, hashCode, initializepublic static final int METHOD_ID
protected CacheSPI spi
protected Notifier notifier
public InvalidateCommand(Fqn fqn)
public InvalidateCommand()
public void initialize(CacheSPI cacheSpi, DataContainer dataContainer, Notifier notifier)
public Object perform(InvocationContext ctx)
ctx - invocation contextprotected NodeSPI enforceNodeLoading()
protected void invalidateNode(NodeSPI node)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic int getCommandId()
ReplicableCommandpublic String toString()
toString in class AbstractDataCommandpublic Object[] getParameters()
AbstractDataCommandgetParameters in interface ReplicableCommandgetParameters in class AbstractDataCommandpublic void setParameters(int commandId,
Object[] args)
AbstractDataCommandsetParameters in interface ReplicableCommandsetParameters in class AbstractDataCommandcommandId - 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 argsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.