public class EvictCommand extends AbstractDataCommand
Cache.evict(org.jboss.cache.Fqn)
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static int |
METHOD_ID |
protected Notifier |
notifier |
protected static boolean |
trace |
static int |
VERSIONED_METHOD_ID |
dataContainer, fqn
Constructor and Description |
---|
EvictCommand() |
EvictCommand(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 boolean |
evictNode(Fqn fqn,
InvocationContext ctx,
NodeSPI node) |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
List<Fqn> |
getNodesToEvict() |
Object[] |
getParameters()
Basic versions of these methods
|
protected Collection<Fqn> |
getRecursiveEvictionNodes() |
void |
initialize(Notifier notifier,
DataContainer dataContainer) |
boolean |
isRecursive() |
protected NodeSPI |
lookupForEviction(InvocationContext ctx,
Fqn fqn) |
Object |
perform(InvocationContext ctx)
Evicts a node.
|
void |
rollback() |
void |
setNodesToEvict(List<Fqn> nodesToEvict) |
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods
|
void |
setRecursive(boolean recursive) |
String |
toString() |
equals, getFqn, hashCode, initialize
public static final int METHOD_ID
public static final int VERSIONED_METHOD_ID
protected Notifier notifier
protected static final org.apache.commons.logging.Log log
protected static final boolean trace
public EvictCommand(Fqn fqn)
public EvictCommand()
public void initialize(Notifier notifier, DataContainer dataContainer)
public Object perform(InvocationContext ctx)
EvictionInterceptor.visitEvictFqnCommand(org.jboss.cache.InvocationContext , EvictCommand)
which is where the return value is usedctx
- invocation contextprotected Collection<Fqn> getRecursiveEvictionNodes()
protected boolean evictNode(Fqn fqn, InvocationContext ctx, NodeSPI node)
protected NodeSPI lookupForEviction(InvocationContext ctx, Fqn fqn)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic int getCommandId()
ReplicableCommand
public boolean isRecursive()
public void setRecursive(boolean recursive)
public Object[] getParameters()
AbstractDataCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractDataCommand
public void setParameters(int commandId, Object[] args)
AbstractDataCommand
setParameters
in interface ReplicableCommand
setParameters
in class AbstractDataCommand
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 String toString()
toString
in class AbstractDataCommand
public void rollback()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.