public class SizeCommand extends AbstractLocalCommand implements VisitableCommand
flags| Constructor and Description |
|---|
SizeCommand(Cache<Object,?> cache,
Set<Flag> flags) |
| Modifier and Type | Method and Description |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
Integer |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
boolean |
readsExistingValues() |
String |
toString() |
canBlock, getCommandId, ignoreCommandOnStatus, isReturnValueExpected, noTxModifications, readFrom, shouldInvoke, writeTogetFlags, setFlagsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalwaysReadsExistingValues, ignoreCommandOnStatus, shouldInvokecanBlock, getCommandId, getParameters, isReturnValueExpected, readFrom, setParameters, writeToaddFlag, addFlags, hasFlag, setFlagspublic Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic boolean readsExistingValues()
readsExistingValues in interface VisitableCommandtrue if the command needs to read the previous values of the keys it acts on.public Integer perform(InvocationContext ctx) throws Throwable
ReplicableCommandperform in interface ReplicableCommandctx - invocation contextThrowable - in the event of problems.Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.