public class EntrySetCommand<K,V> extends AbstractLocalCommand implements VisitableCommand
Map.entrySet()
functionality.flags
Constructor and Description |
---|
EntrySetCommand(Cache<K,V> 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.
|
Set<CacheEntry<K,V>> |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
boolean |
readsExistingValues() |
String |
toString() |
canBlock, getCommandId, ignoreCommandOnStatus, isReturnValueExpected, noTxModifications, readFrom, shouldInvoke, writeTo
getFlags, setFlags
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
alwaysReadsExistingValues, ignoreCommandOnStatus, shouldInvoke
canBlock, getCommandId, getParameters, isReturnValueExpected, readFrom, setParameters, writeTo
addFlag, addFlags, hasFlag, setFlags
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
acceptVisitor
in interface VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic boolean readsExistingValues()
readsExistingValues
in interface VisitableCommand
true
if the command needs to read the previous values of the keys it acts on.public Set<CacheEntry<K,V>> perform(InvocationContext ctx) throws Throwable
ReplicableCommand
perform
in interface ReplicableCommand
ctx
- invocation contextThrowable
- in the event of problems.Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.