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.
|
boolean |
ignoreCommandOnStatus(ComponentStatus status)
Similar to
shouldInvoke(InvocationContext) but evaluated by InvocationContextInterceptor . |
boolean |
shouldInvoke(InvocationContext ctx)
Used by the InboundInvocationHandler to determine whether the command should be invoked or not.
|
canBlock, getCommandId, getParameters, isReturnValueExpected, perform, setParameters
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
)Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.