public class ExistsCommand extends AbstractDataCommand
ClusteredCacheLoader
to
implement CacheLoader.exists(org.jboss.cache.Fqn)
This is the equivalent of the old MethodCallDefinitions.existsMethod method call from 2.1.x.
Modifier and Type | Field and Description |
---|---|
static int |
METHOD_ID |
dataContainer, fqn
Constructor and Description |
---|
ExistsCommand() |
ExistsCommand(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.
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Object |
perform(InvocationContext ctx)
Checks whether a node represented by a given Fqn exists.
|
equals, getFqn, getParameters, hashCode, initialize, setParameters, toString
public static final int METHOD_ID
public ExistsCommand(Fqn fqn)
public ExistsCommand()
public Object perform(InvocationContext ctx)
ctx
- invocation contextpublic Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic int getCommandId()
ReplicableCommand
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.