|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.write.InvalidateCommand
public class InvalidateCommand
Removes a node's content from memory - never removes the node. It also clenups data for resident nodes - which are not being touched by eviction.
| Field Summary | |
|---|---|
static int |
METHOD_ID
|
protected Notifier |
notifier
|
protected CacheSPI |
spi
|
| Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
dataContainer, fqn |
| Constructor Summary | |
|---|---|
InvalidateCommand()
|
|
InvalidateCommand(Fqn fqn)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
|---|
equals, getFqn, hashCode, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ID
protected CacheSPI spi
protected Notifier notifier
| Constructor Detail |
|---|
public InvalidateCommand(Fqn fqn)
public InvalidateCommand()
| Method Detail |
|---|
public void initialize(CacheSPI cacheSpi,
DataContainer dataContainer,
Notifier notifier)
public Object perform(InvocationContext ctx)
ctx - invocation context
protected NodeSPI enforceNodeLoading()
protected void invalidateNode(NodeSPI node)
public Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws Throwable
VisitableCommand
ctx - invocation contextvisitor - visitor to accept
Throwable - in the event of problemspublic int getCommandId()
ReplicableCommand
public String toString()
toString in class AbstractDataCommandpublic Object[] getParameters()
AbstractDataCommand
getParameters in interface ReplicableCommandgetParameters in class AbstractDataCommand
public void setParameters(int commandId,
Object[] args)
AbstractDataCommand
setParameters 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 args
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||