public interface VisitableCommand extends ReplicableCommand
Visitors, such as CommandInterceptors.| 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.
|
getCommandId, getParameters, isReturnValueExpected, perform, setParametersObject 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 © 2017 JBoss, a division of Red Hat. All Rights Reserved.