public interface VisitableCommand extends ReplicableCommand
Visitor
s, such as CommandInterceptor
s.Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
default boolean |
alwaysReadsExistingValues() |
boolean |
ignoreCommandOnStatus(ComponentStatus status)
Similar to
shouldInvoke(InvocationContext) but evaluated by InvocationContextInterceptor . |
boolean |
readsExistingValues() |
boolean |
shouldInvoke(InvocationContext ctx)
Used by the InboundInvocationHandler to determine whether the command should be invoked or not.
|
canBlock, getCommandId, getParameters, isReturnValueExpected, perform, readFrom, setParameters, writeTo
Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemsboolean shouldInvoke(InvocationContext ctx)
boolean ignoreCommandOnStatus(ComponentStatus status)
shouldInvoke(InvocationContext)
but evaluated by InvocationContextInterceptor
.
Commands can opt to be discarded in case the cache status is not suited (as InvalidateCommand
)boolean readsExistingValues()
true
if the command needs to read the previous values of the keys it acts on.default boolean alwaysReadsExistingValues()
true
if the command needs to read the previous values even on the backup owners.
In transactional caches, this refers to all the owners except the originator.Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.